Re:Windows 10 Console Host Enhancements
by mark-r on Tuesday February 09, 2016 @05:05PM
(#11069172)
I realize the interface to the Windows API is UTF-16, but the program interface to the console (stdout) is not - it's based on 8 bit characters, generally code page 437. Converting from UTF-8 to UTF-16 is trivial, as long as you get the full byte sequence that makes up a character.
[ Parent
| on HN ]
Re:Windows 10 Console Host Enhancements
by nikbackm on Wednesday February 10, 2016 @12:41AM
(#11070962)
Does this this [1] work for the console?
[1] http://stackoverflow.com/questions/388490/unicode-characters...
Re:Windows 10 Console Host Enhancements
by mark-r on Thursday February 11, 2016 @09:40AM
(#11080353)
Have you read all the comments below the answer about how broken 65001 is?
There is ReadConsoleW/WriteConsoleW which have full UTF-16 support already.