From simon.urbanek at r-project.org  Fri Jan 20 02:59:37 2012
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Thu, 19 Jan 2012 20:59:37 -0500
Subject: [Rd] use of UTF-8 \uxxxx escape sequences in function arguments
In-Reply-To: <CABFfbXv+9y94tAn+NKgyW8zw0Ee2L7t+AQNbXVyOKDYKE44xOA@mail.gmail.com>
References: <201201182354.43607.thomas@zumbrunn.name>
	<2855A65F-5760-4076-BF1D-E80FEDCA0DB0@gmail.com>
	<201201200039.18352.thomas@zumbrunn.name>
	<CABFfbXv+9y94tAn+NKgyW8zw0Ee2L7t+AQNbXVyOKDYKE44xOA@mail.gmail.com>
Message-ID: <71C3FFBE-B0A0-43A2-AA11-459576712566@r-project.org>


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 ...



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