I have an XRC file generated by XRCed which by default is coded in UTF-8. On
Win32 if selecting "test window" in XRCed or when displaying the content of
the XRC in a wxpython program, I get the following error (question):
"xrced: unknown encoding
No font for displaying text in encoding 'Unicode 8 bit (UTF-8)' found.
Would you like to select a font to be used for this encoding (otherwise the
text in this encoding will not be shown correctly) ?"
It seems the problem is related to wxStaticText font changes made in XRCed:
More specificly the problem seems related to the <encoding> tag above which
specifies UTF-8 encoding. If removing this tag, I get the expected behaviour.
Both the XRC and the wxpython program has UTF-8 as default encoding, and this
error does not appear on GNU/Linux or Mac OSX - only Win32. The wxpython
installation on Windows is Unicode version.
I appreciate any feedback at all on this problem, as I do not have regular
access to a win32 plattform for testing and so far have been unable to find a
solution.
I have an XRC file generated by XRCed which by default is coded in UTF-8. On Win32 if selecting "test window" in XRCed or when displaying the content of the XRC in a wxpython program, I get the following error (question):
"xrced: unknown encoding
No font for displaying text in encoding 'Unicode 8 bit (UTF-8)' found.
Would you like to select a font to be used for this encoding (otherwise the text in this encoding will not be shown correctly) ?"
It seems the problem is related to wxStaticText font changes made in XRCed:
More specificly the problem seems related to the <encoding> tag above which specifies UTF-8 encoding. If removing this tag, I get the expected behaviour.
In XRCed try editing the font to remove the encoding. To do this don't use the "Select..." button but just edit the string in the textctrl next to it. Go to the end of the value and remove the UTF-8 but leave the quotes there.
Both the XRC and the wxpython program has UTF-8 as default encoding, and this error does not appear on GNU/Linux or Mac OSX - only Win32. The wxpython installation on Windows is Unicode version.
Windows doesn't support using utf-8 as a font encoding. In fact, if you tried editing that font in XRCed on Windows using the font dialog, it would probably set it to an encoding like 'WINDOWS-1252' or something, and that could give you problems on the other platforms...
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!