I'm using python 3.1 and Windows.
My program writes xml code to a text file, the problem is that windows needs to know that this file's encoding is utf-8. Right now it does write the proper code, but other programs (firefox, for instance) fail to read it because it somehow got saved in the ansii encoding, which poses lot of problems when you use special characters.
Is there a way of getting python to write text to a file AND specify the encoding?
The program is running perfectly under Linux, as it is not that problematic with encodings, but I need to fix this problem under windows.