#undef CHARSET_CP866 #define CHARSET_CP866 60 CONSOLE_APP_MAIN { Cout() << "\n"; String s = ToCharset(CHARSET_CP866, "Всем привет!", CHARSET_UTF8); for (int i=0; i<s.GetLength(); ++i) Cout() << Format("%02X ", s[i]&255); } // outputs: 82 E1 A5 AC 20 AF E0 A8 A2 A5 E2 21
... #define CHARSET_CP865 59 // instead of 61 #define CHARSET_CP866 60 // instead of 62 #define CHARSET_CP869 61 // instead of 63 ... and so on
[Updated on: Mon, 07 June 2010 12:34]
Report message to a moderator