The string returned by wx.GetDefaultPyEncoding, on my development
machine (haven't had a chance to check the Windows XP machine) is
'mac-roman'. How portable does that seem? Not bloody very.
It's a well and python-wide defined encoding.
But you should declare your script to be using it:
# -*- coding: mac-roman -*-
One of my own scripts uses this with constant strings like yours -
it runs on MacOS X to do filename corrections, but I develop on WinXP,
no problems so far (as long as I use \x## instead of Mac characters).
If you need "special" characters in text files, you should open them
in a declared encoding.
Best regards,
Henning Hraban Ramm
Südkurier Medienhaus / MediaPro
Support/Admin/Development Dept.