[Rd] use of UTF-8 \uxxxx escape sequences in function arguments

Simon Urbanek simon.urbanek at r-project.org
Fri Jan 20 02:59:37 CET 2012


On Jan 19, 2012, at 7:27 PM, Jeroen Ooms wrote:

>> 
>> I installed "libiconv" from http://www.gnu.org/software/libiconv/, and
>> now I can easily replace all non- ASCII characters in my UTF-8 encoded R
>> files with: iconv -f UTF-8 -t ASCII --unicode-subst="\u%04X"
>> my-utf-8-encoded-file.R
> 
> 
> Maybe it would be possible to create an R package that exposes an R
> interface to libiconv, in a smililar spirt as how the package XML
> interfaces to libxml2 and RCurl to libcurl, etc
> 

Well, R does that - see ?iconv ...



More information about the R-devel mailing list