Re: [Rd] How to print UTF-8 encoded strings from a C routine to R's output?

2016-09-05 Thread Lixin Gong
E=English_United States.1252 [3] LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C [5] LC_TIME=English_United States.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base > Am I missing something obvious? Thanks a lot for your help and your time

[Rd] How to print UTF-8 encoded strings from a C routine to R's output?

2016-09-05 Thread Lixin Gong
Dear R experts, It seems that Rprintf has to be used to print from a C routine to guarantee to write to R’s output according to https://cran.r-project.org/doc/manuals/r-release/R-exts.html#Printing. However if a string is UTF-8 encoded, non-ASCII characters (e.g., the infinity symbol http://www.f