From maillist at tlink.de  Thu Feb 26 21:09:03 2015
From: maillist at tlink.de (maillist at tlink.de)
Date: Thu, 26 Feb 2015 21:09:03 +0100
Subject: [Rd] Native characterset is wrong for unicode builds for Windows
Message-ID: <54EF7D5F.8060305@tlink.de>


When I send some outlandish characters through enc2native (or format) in 
R 3.1.2 on Ubuntu trusty it works quite well:

 > "?????"
[1] "?????"
 > enc2native("?????")
[1] "?????"
 > Encoding(enc2native("?????"))
[1] "UTF-8"

In Windows the result is different:

 > "?????"
[1] "?????"
 > enc2native("?????")
[1] "??<U+0394><U+040A><U+05EA>"
 > Encoding(enc2native("?????"))
[1] "latin1"

And this is wrong. The native character set of a unicode application 
under Windows is *Unicode*. enc2native should do the same under Windows 
as it does on Ubuntu. Also the "unknown" encoding should be changed to 
mean the same as "UTF-8" exactly as it is on Linux.



[Rd] Native characterset is wrong for unicode builds for Windows
maillist at tlink.de