How to convert from CP437

Stephen Jackson spjackson42 at gmail.com
Wed May 2 00:34:56 PDT 2007


On Wed, 2007-05-02 at 08:17 +0100, Chris Wilson wrote:

> You can use the Windows API MultiByteToWideChar function, with the source 
> codepage being CP437, to put the input data into a dynamically created 
> wide-char array, and then create your wxString from that.
> 
> Cheers, Chris.

Thanks a lot Chris for your quick reply. Although I stated that I was
using XP, I am really looking for a cross-platform solution (at least
wxGTK too). So the Windows API isn't very appealing, I'm afraid.

Are there any other suggestions that don't involve writing
platform-specific code?

TIA,

Stephen Jackson







More information about the wx-users mailing list