> But what are we doing here? Can you convince me that we are emitting UTF-8?
Most definitely not. We are emitting cp1251. > I need UTF-8 because I need to experiment with some OS function calls that > give me UTF-16 and I need to emit UTF-16 or UTF-8. Try setting the code page to 65001, and emit the UTF-8 explicitly. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list