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

Vadim Zeitlin vadim at wxwindows.org
Sat Sep 2 04:36:23 PDT 2006


On Sat, 02 Sep 2006 10:14:24 +0100 Julian Smart <julian at anthemion.co.uk> wrote:

JS> When using an encoding of ISO-8859-11 on Windows XP, wxWidgets tries to 
JS> map it to code page 28601 in src/msw/utils.cpp.
JS> But this code fails to find a valid code page:
JS> 
JS>     if (::IsValidCodePage(ret) == 0)
JS>         return -1;
JS> 
JS> This is in src/msw/utils.cpp, function wxEncodingToCodepage.
JS> 
JS> On the other hand this page:
JS> 
JS> http://en.wikipedia.org/wiki/ISO_8859-11
JS> 
JS> thinks that the code page should be 874. Any reason not to change the 
JS> mapping to 874, given that CP 28601 appears not to exist?

 No, CP874 seems to be the right one for ISO-8859-11. And in fact other CP
are incorrect as well if you trust this list:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceinternational5/html/wce50conCodePages.asp

 Could you please update them if you change this one?

 TIA!
VZ





More information about the wx-dev mailing list