Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


One 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.


They can implement an alternative driver to convert IO streams into API calls. And that's how libuv did.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: