[wxPython] wxTextCtrl Rich-text version, how to set input locale?

I've just noticed that the Rich-text versions of wxTextCtrl seem to be using a weird (maybe Unicode/utf-8?) input locale, and am wondering if anyone knows how to go about setting it to the machine-default locale.

For instance, my current clients are constantly needing to type á and í, which they can do just about anywhere on English-Canadian Win32 machines using Alt-0225 and Alt-0237 respectively. However, the second sequence creates an oriental glyph (Chinese I think) rather than an i with an accent when the rich-text editor is used. Not sure what locale it could be using, but it doesn't seem like the default latin-1 we'd like to use.

For now, I've just switched to using the non-RTF version, but given that this is our default property editor for "long" text strings, I'd like to be able to handle something more than 64Kb. So, anyone know a magic incantation here?

This is on Win2K, with wxPython 2.3.3pre5 and Python 2.2.1.

Enjoy,
Mike

···

_______________________________________
   Mike C. Fletcher
   Designer, VR Plumber, Coder
   http://members.rogers.com/mcfletch/

I've just noticed that the Rich-text versions of wxTextCtrl seem to be
using a weird (maybe Unicode/utf-8?) input locale, and am wondering if
anyone knows how to go about setting it to the machine-default locale.

For instance, my current clients are constantly needing to type � and �,
which they can do just about anywhere on English-Canadian Win32 machines
using Alt-0225 and Alt-0237 respectively. However, the second sequence
creates an oriental glyph (Chinese I think) rather than an i with an
accent when the rich-text editor is used.

Are you using a unicode build of wxPython? Alt-0237 works fine for me with
the ANSI build. If you are using the unicode build then all the GUI
components use unicode all the time, there is no encoding involved. However
the Alt- trick obviously still works, you just need to find the right
unicode value for the characters you are after.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

This is the ANSI build. Oh well, will look into it when I get time I suppose. Must be something I'm messing up in setting up the window since it's working properly over there.

Thanks,
Mike

Robin Dunn wrote:

···

I've just noticed that the Rich-text versions of wxTextCtrl seem to be
using a weird (maybe Unicode/utf-8?) input locale, and am wondering if
anyone knows how to go about setting it to the machine-default locale.

For instance, my current clients are constantly needing to type á and í,
which they can do just about anywhere on English-Canadian Win32 machines
using Alt-0225 and Alt-0237 respectively. However, the second sequence
creates an oriental glyph (Chinese I think) rather than an i with an
accent when the rich-text editor is used.

Are you using a unicode build of wxPython? Alt-0237 works fine for me with
the ANSI build. If you are using the unicode build then all the GUI
components use unicode all the time, there is no encoding involved. However
the Alt- trick obviously still works, you just need to find the right
unicode value for the characters you are after.

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!