Skip to content
Prev 53780 / 63421 Next

Rprintf expected encoding

On 30/06/2017 4:24 PM, Patrick Perry wrote:
It always expects the native encoding.  If the output connection is 
UTF-8 encoded, it will translate from native to UTF-8 as it writes.

Things will hopefully change in R 3.5.0, since the translation from 
UTF-8 to native to UTF-8 can lose information (and is inefficient even 
if not lossy).  I think old code should behave as it did in the past, 
but there will be a way to say that the incoming string is in UTF-8.

Duncan Murdoch