[Rcpp-devel] How to properly check if a String has only ASCII characters in Rcpp?

Dirk Eddelbuettel edd at debian.org
Thu Feb 18 21:41:08 CET 2021


The whole topic is such a can of worms. It is 2021, and we just wish we had
utf-8 everywhere.  Sadly the OS dependence underneath rears its head here.
Tomas wrote well about it:

  https://developer.r-project.org/Blog/public/2020/07/30/windows/utf-8-build-of-r-and-cran-packages/index.html

"One day" this may be easier. Until then the best we can do may be to borrow
helper functions from R.

Dirk

-- 
https://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


More information about the Rcpp-devel mailing list