Skip to content
Prev 51028 / 63424 Next

Differences in printing UTF-8 strings to stdout vs. stderr under Windows

On 22/09/2015 8:55 AM, Richard Cotton wrote:
The answer to the last question is certainly "no".  If you are running
Rterm, you are limited to printing in the native encoding, and that
won't cover all Unicode characters.

In Rgui we make more of an effort to convert characters to UTF-16, which
covers most Unicode characters.  (I think we still don't handle
surrogate pairs, but they're rarely used.)  Apparently this is done for
stdout() but not for stderr().  I don't know the rationale for that design.

Duncan Murdoch