From python to LaTeX in emacs on windows

Brian Elmegaard brian at
Mon Aug 30 13:32:03 CEST 2004

Hi group

I hope this is not a faq...

I try to understand how to use the new way of specifying a files
encoding, but no matter what I do I get strange characters in the

I have a text file which I have generated in python by parsing some

In the file there is international characters like é and ó.
I can see the file in emacs it is encoded as 

I read the file into python as a string and suddenly the characters
when printed looks strange and consists of two characters. 

First problem: How do I avoid this?

Second problem is that I make some string replacements and more in
the string to write a latex output file. When I open this file in
emacs the characters now are not the same?

Second problem: How do I avoid this?

Brian (remove the sport for mail)

More information about the Python-list mailing list