On Thursday 28 December 2006 18:10, V.Yumashev wrote: > Hello lyx-users, > > I have a problem using LyX in Win32 environment: > > After I import an existing LaTeX document > written in Russian using cp1251 encoding, > LyX displays the document in KOI8-r encoding > which looks like garbage. > > I do not know how to make LyX to use cp1251 > encoding to display (and also to insert > modifications into) documents. Note that > cp1251 is standard encoding in Win32 for > presenting texts in Russian.
tex2lyx (which is used to import .tex files) does unfortunately not know anything about encodings, therefore some default encoding ill be used. Fortunately there is an easy workaround: Open the created .lyx file with a text editor, and search for a line \inputencoding auto (or koi8-r) instead of auto). It should be somewhere at the beginning of the file. Change that line to \inputencoding cp1251 , and it should work. If it does not work, file a bug at http://bugzilla.lyx,org, and attach a minimal exmple .tex file along with the created .lyx file (unedited). Georg
