Archive for July, 2007

Unicode, Python and win console

I wrote small python script that had to print out text in French. French language contains different umlauts. As I used UTF-8 for my code source, I assumed that python is able to print texts in correct encodings. It doesn’t. Solution is to specify source code encoding and specify special characters as ‘\xNN’:

#!/usr/bin/python
# -*- coding: [...]