Problem with file encoding

Discuss the word processor

Problem with file encoding

Postby susruni » Wed Mar 26, 2014 6:02 pm


I am asking about help with file encoding. I wrote the document in Russian language and saved it. Then I switched off my notebook. After that I can't open the file. OO write me about problems with encoding and offer select encoding to windows 1251 and also write "File was lock by Unknown user". I open it like copy and all characters are replace on "#" character. Also I have file .~lock which is saved with my document. How could I fix this? It's very important file for me.

Thank you for help!
OpenOffice 3 on Windows 7
Posts: 1
Joined: Wed Mar 26, 2014 5:29 pm

Re: Problem with file encoding

Postby Hagar Delest » Wed Mar 26, 2014 10:23 pm

Hi and welcome to the forum!

Sadly, quite nothing to do I fear, see: 22 pages term paper replaced with pound signs.

Check the temporary folder of the system (see in OO Tools>Options>OO>Paths). If there are folders like sgmlf.tmp with a file having the same name inside, make a copy of that file, rename it in .odt and cross your fingers. If you have not rebooted, you might have those files still there.

Under Windows 7, I think there is also the shadow feature that should give you the possibility to retrieve an older version.

If you want to help fix this problem, you can also do this survey created for this very problem: Document Recovery Survey.
LibreOffice 7.0.3 on Xubuntu 20.10 and LibreOffice 6.4.6 (portable) on Windows 10.
User avatar
Hagar Delest
Posts: 29239
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Problem with file encoding

Postby Daiwe01 » Thu Mar 27, 2014 8:37 am

susruni wrote:... I wrote the document in Russian language and saved it. Then I switched off my notebook. ...
As Hagar's link indicated, this problem is, so far, unpredictable.
In the interest of possibly improving predictability, may I ask if, after you saved the file and before you switched off your notebook, did you
  1. Close the document in Open Office
  2. Close Open Office
AOO 4.1.5 Win7Pro/2KPro/XP & *nix (But my heart is still VAX/VMS)
Posts: 124
Joined: Fri Nov 21, 2008 4:49 am
Location: Georgia USA

Re: Problem with file encoding

Postby RoryOF » Thu Mar 27, 2014 8:51 am

It is possible that your close down process was over quick. If OpenOffice is closed and the computer is powered down immediately - as may for example happen after a long editing/writing session, in one's anxiety to finish a day's work - it may be that insufficient time is allowed for the software and hardware write buffers to flush, thereby leading to a corrupt OpenOffice file. These files are compressed archives and take longer to construct than normal uncompressed files. My advice to users is to close OpenOffice, then to collect their papers and pens, then to power off the computer - the few extra seconds taken to do this will be a lot less than the time taken if a rewrite is needed due to file loss.

It is possible (just) that if the computer has not been heavily used since the file loss was discovered that an undelete utility such as Photorec or Recuva might recover a version of the file containing some or all of the data. With large modern drives it can take considerable time (hours/overnight?) for such utilities to complete their task.
Apache OpenOffice 4.1.8 on Xubuntu 20.04.1 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
Posts: 31979
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Return to Writer

Who is online

Users browsing this forum: No registered users and 16 guests