Hi, Qin,
I am afraid the problem you met is Windows-specific. On OSX and Linux, I got
> error_with_unicode(enc2utf8("测试"))
*Error: 测试*
Personally I am not sure we can fix this on C++ side.
Best wishes,
KK
___
Rcpp-devel mailing list
Rcpp-devel@lists
Hi all,
If an Rcpp function throw an exception with UTF-8 encoding strings, the error
message in R will lose the encoding setting. And the error message will be
displayed as some other characters on Windows.
Here is an example:
library(Rcpp)
sourceCpp(code = "
#include