Skip to content
Prev 251340 / 398498 Next

Problem with writing a file in UTF-8

This is asking FAR too much under Windows, which has no UTF-8 locales. 
In particular, cat() (on which write() is based) will convert to the 
native locale, even if you manage to input the string as an R UTF-8 
string.

And conversion is a OS service, so you are getting the conversion 
Windows sees as appropriate.

The best way around this is to use a more capable OS.  But you can do 
e.g.

        
On Mon, 21 Feb 2011, Matt Shotwell wrote: