They can be encoded in UTF-16. Characters above 0xFFFF are encoded as two wchar_ts, the first encoding the high ten bits of the character, and the second encoding the low one -- a "surrogate pair". See e.g. Wikipedia for the details.
So, when @CHAR finds a value above 0xFFFF, it should return the surrogate pair for the specified character. And conversely, when @UNICODE finds a surrogate pair in the input string, it should return a single value > 0xFFFF. (Values above 0x10FFFF are illegal, and should give an error message.)
But I don't know whether those characters are actually in the Consolas font, or whether Windows is just doing its font-substitution thing. I suspect the latter. Those glyphs look much the same in Lucida Console or Courier New.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.