LaTeX forum ⇒ WinEdtcoding

Information and discussion about WinEdt, a commercial integrated LaTeX environment for Windows
Posts: 1
Joined: Tue May 24, 2016 6:13 pm


Postby smota » Tue May 24, 2016 8:17 pm

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.

User avatar
Site Moderator
Posts: 3933
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Wed May 25, 2016 9:38 am

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 \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.

Return to “WinEdt”

Who is online

Users browsing this forum: No registered users and 0 guests