How to convert from CP437

Stephen Jackson spjackson42 at gmail.com
Wed May 2 00:13:23 PDT 2007


Hi,

[Windows XP, wxWidgets 2.8.3 (unicode), gcc 3.4.2 (mingw-special).]

I want to read a file which is encoded in Code Page 437 (ancient IBM
PC / DOS encoding) where, for example the byte 0x8a represents e-grave.

I want to store the text in a wxString. I cannot see how to do this with
wxMBConv or with wxEncodingConverter. The doc page for the latter lists
some supported encodings, and CP437 isn't one of these.

Is there a simple way to do this? (Obviously, as a last resort I can set
up my own mapping, but I can't be the first to have this need.)

Regards,

Stephen Jackson







More information about the wx-users mailing list