[wx-dev] Encoding ISO-8859-11 on Windows

Robert Roebling robert at roebling.de
Sat Sep 2 05:52:16 PDT 2006


Julian Smart wrote:

> When using an encoding of ISO-8859-11 on Windows XP, wxWidgets tries to 
> map it to code page 28601 in src/msw/utils.cpp.
> But this code fails to find a valid code page:
> 
>     if (::IsValidCodePage(ret) == 0)
>         return -1;

The problem in your case was that utils.cpp mapped iso8859-11
to a non-existing codepage but our built-in tables don't
provide any fallback for iso8859-11 (only for 1, 10, 13,
14, 15, 2, 3, 4, 5, 6, 7, 8, 9 in that order), so I tend
to change the mapping from iso8859-11 to 874 and leave
the rest as it is.

  Robert






More information about the wx-dev mailing list