4 ms·
However if you use WriteConsoleW, you can actually output both of the "€∑" in ANY code page. The NT console is a matrix of UTF-16 code points, and there is an A
by be5invis 10y ago
However if you use WriteConsoleW, you can actually output both of the "€∑" in ANY code page.
The NT console is a matrix of UTF-16 code points, and there is an API to write it. So the question becomes why Java (and many other platforms, like Python) did not use this mechanism. Notably Java's internal encoding of strings is UTF-16 either, this should be a problem.
- mark-r 10y agoOne of the great benefits of a console interface is that it's a lowest common denominator between different OS. That interface is based on a byte-level I/O model. Things like I/O redirection depend on it.
- be5invis 10y agoThey can implement an alternative driver to convert IO streams into API calls. And that's how libuv did.