![]() ![]() #then the usual write procedure whre I write es and ts to the file. and it says windows default is some other language. I understand I need to turn the file into a UTF-8 file FROM Python (right now I have to open the file and change it myself, everything works fine after that.) t = word.get() #I'm using tkinter, word is an entry fieldÄ® = meaning.get() #I'm using tkinter, meaning is an entry field How can I change the encoding of documents to english I have checked all the settings that I know of My computer opens the files I download (off the internet) in a forien language. The program manages to take the words and convert them to utf-8, (or at least that's what I think, see code) then it writes them to the file, but when I open it under windows the character encoding is still ANSI. ![]() The other thing that I can think of that the encoding of the local files that you are trying to merge has been changed by a tool or an IDE. However, from the screenshots, it is clear that your. This encoding may not match the latest versions' physical encoding, you can refresh it by clicking Detect next to the encoding combobox in the properties window. ![]() sudo apt-get install gaupol Besides of gaupol, you can also try Subtitle Editor and Gnome Subtitles. In Linux there is no problem at all, because it uses UTF-8 as default, so it works smoothly. For subtitle edition/translation (text-based subtitles, that is), I strongly suggest Gaupol. Since my program is multiplatform, it can also work under Linux. Now I'm making a program for creating language glossaries, but the problem is that windows uses ANSI for encoding text files, and the program that will read these files (which is not mine) only displays words in utf-8 encoding. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |