Unicode confusion

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.

Joe,

···

On Apr 12, 2005, at 8:29 AM, Joe Brown wrote:

I apologize to the list for sending this twice. And for replying to an unrelated subject.

You've stepped into an ongoing discussion on Unicode. If you ask your question in its own thread I bet you'll get a much better response.

Regards,
Nate
--
  "To resist it, is useless. It is useless, to resist it." -- Cake