Hi all,
I have problem with the coding of a .tex file created in Slovakian language. I did not create this file and it was created on different computer, so I have not information about the initial settings. If I open it in WinEdt, a lot of confusing characters appear there instead of the original text, nevertheless, the translation into .pdf file works correctly and the resulting .pdf file is OK. On the other hand, if I make any changes in the .tex file, these changes are translated without the characters with diacritical signs. With the help of Document Settings, I changed the original ANSI coding into UTF-8. As the result, my changes are translated correctly, but the original text is translated improperly. Does exist any way, how to translate ALL the text without any mistakes? I tried to choose all the possible options in Document Settings without any success.
WinEdt ⇒ coding
- Johannes_B
- Site Moderator
- Posts: 4182
- Joined: Thu Nov 01, 2012 4:08 pm
coding
Set WinEdt to use utf8 encoding.
Open the old file with notepad or any other plain text editor, open a new tex-file in WinEdt. Now copy and paste all content from the old file to the new file, save.
Change the
Open the old file with notepad or any other plain text editor, open a new tex-file in WinEdt. Now copy and paste all content from the old file to the new file, save.
Change the
\usepackage[<option>]{inputenc}
line to have utf8
as the option. Now it should work, with old and new content.The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.