From lgong at uw.edu  Mon Sep  5 06:40:04 2016
From: lgong at uw.edu (Lixin Gong)
Date: Sun, 4 Sep 2016 21:40:04 -0700
Subject: [Rd] How to print UTF-8 encoded strings from a C routine to R's
	output?
Message-ID: <CAM0+Z0x8mJGuZxjqW9hbmQ6-oVaHUDRKid=rkFjwegOiRhPYgg@mail.gmail.com>

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]]



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