Displaying 1 result from an estimated 1 matches for "td4724337".
Did you mean:
td4714332
2017 Jun 30
1
Rprintf expected encoding
I'm trying to find information about how to use Rprintf with a UTF-8
encoded string, and I'm not sure what the right cross-platform usage is.
I found an earlier thread about this
(http://r.789695.n4.nabble.com/How-to-print-UTF-8-encoded-strings-from-a-C-routine-to-R-s-output-td4724337.html)
but it wasn't very helpful.
If I want to print a UTF-8 string, I can do one of the following:
1) Send native data via Rprintf("%s", translateChar(str));
2) Send UTF-8 data via Rprintf("%s", translateCharUTF8(str));
If Rprintf is sending its output to stdout, then...