'Special' wide char on mac

Hey rrybody,
I was wondering how to put 'special' characters from the OEM 437. Is it even possible since it seems that its only for windows?
Im trying to print out 2592 from
http://msdn.microsoft.com/en-us/goglobal/cc305156.aspx
with
1
2
wchar_t test = 2592;
putwchar(test);

If w_char is the same size of unsigned short, you could print it formatted.
wchar is 4 and unsigned short is 2
how about an unsigned long then?
It has nothing to do with size of the object, it's all about how it's interpreted.

My approach would be to use ICU, there's a section in the documentation that describes how to map code page sets onto unicode. But don't have enough experience or the time to investigate to answer the question directly.
http://site.icu-project.org/charts/charset
Topic archived. No new replies allowed.