Re: [Rd] Differences in printing UTF-8 strings to stdout vs. stderr under Windows

2015-09-22 Thread Duncan Murdoch
On 22/09/2015 8:55 AM, Richard Cotton wrote: > It seems that under Windows, some UTF-8 strings that print OK to > stdout do not print correctly to stderr. To reproduce: > > x <- "\ub124" > cat(x, file = stdout()) > ## 네 > cat(x, file = stderr()) > ## > > Original motivating problem here: > http

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

2015-09-22 Thread Richard Cotton
It seems that under Windows, some UTF-8 strings that print OK to stdout do not print correctly to stderr. To reproduce: x <- "\ub124" cat(x, file = stdout()) ## 네 cat(x, file = stderr()) ## Original motivating problem here: https://stackoverflow.com/questions/32696241/how-to-display-a-message-w