I need to know so I could include some unicode characters into a 2D array. So information would be greatly appreciated, headers, types, anything. If you need something to build around, Heres a 2D character array([4][4]) setup with unicode in it, so it won't work. Just take this and add on to it, I guess. Thanks!
1 unicode is the size of 2 char, you might have to use wide char wchar_t I think... you'll have to use wide everything for it like std::wcout and stuff
1 unicode is the size of 2 char, you might have to use wide char wchar_t I think... you'll have to use wide everything for it like std::wcout and stuff
Unicode is not necessarily larger than a char. You're mixing up "wide" characters with unicode characters (and even wide chars aren't necessarily 2 bytes -- on some systems they're larger).
Using wide everything won't make unicode work on the console. In fact, wcout does practically nothing (it narrows data before outputting, effectively making it pretty useless).
On *nix systems, outputting Unicode to the console is as simple as outputting UTF-8. On Windows, however, it is a considerable process. I walked someone through it before in a 4-page thread a long time ago. I have the link book marked at home -- when I get home I'll post it here if I remember.
oh, plus that page only helps with a little, I'm just now finding out how difficult cmd is with anything but what it expects... I guess if you really wanted to do it, you could use a different console, or make your own...
Disch, that thread answered against every reason I chose to make a game in the console instead. XD Great reasons why not to. Thanks for the awesome help. And you to cranium.