How to print a character above 0xFFFF?
===

I wonder if it is possible to print a character above 0xFFFF with Windows. I am using Microsoft Visual Studio 2010 along with Windows XP. A character is 16 bits wide so codepoints greater than 0xFFFF cannot really fit into a single char. Even when i try this:

int codepoint = char.ConvertToUtf32(charHS, charLS);

i will get the codepoint from the surrogate pair, but it still doesn't fit into a char. If i paste a character from the higher multilingual planes into a string within c#, the string will have the length 2, if i try to print the string then i will print the two surrogate characters (which are indeed no characters e. g. have no codepoint by itself, just as a pair) instead of the "real" character.

Shouldn't there be something like a 32 bit wide char that can hold codepoints higher than 0xFFFF?



