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

Lixin Gong lgong at uw.edu
Mon Sep 5 06:40:04 CEST 2016


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.fileformat.info/info/unicode/char/221e/index.htm)
are misprinted.
Is this an unsupported feature or is there a workaround for this limitation?

Thanks!

Michael

	[[alternative HTML version deleted]]



More information about the R-devel mailing list