Skip to content
Prev 6427 / 12125 Next

[R-pkg-devel] Package Encoding and Literal Strings

Hello Tomas,

I have made a minimal example that demonstrates my problem:
https://github.com/JorisGoosen/utf8StringsPkg

This package is encoded in UTF-8 as is Test.R. There is a little Rcpp
function in there I wrote that displays the bytes straight from R's CHAR to
be sure no conversion is happening.
I would expect that the mathotString had "C3 B4" for "?" but instead it
gets "F4". As you can see when you run
`utf8StringsPkg::testutf8_in_locale()`.

Cheers,
Joris



On Fri, 18 Dec 2020 at 11:48, Tomas Kalibera <tomas.kalibera at gmail.com>
wrote: