![]() ![]() #then the usual write procedure whre I write es and ts to the file. 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 Convert encoded text into a decoded string using these free online encoder and decoder utilities. The Encoding class defines the standard encodings supported by. Online tools for encoding and decoding a string. There is no such thing as the 'clear text' encoding. For your code you need to decide what encoding you want to convert to. 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. What encoding they are using is unclear to me. ![]() In Linux there is no problem at all, because it uses UTF-8 as default, so it works smoothly. ![]() 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 |