search for: 4649507

Displaying 2 results from an estimated 2 matches for "4649507".

2015 Feb 26
4
Native characterset is wrong for unicode builds for Windows
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] "?????" >
2015 Feb 26
0
Native characterset is wrong for unicode builds for Windows
...set. Unicode is a character set. UTF-8 is one of many encodings of Unicode. UTF-8 may be the native character encoding in Ubuntu, but it's not the native encoding in Windows. According to this, what counts as the native encoding in Windows depends on the code page: http://stackoverflow.com/a/4649507 So you shouldn't expect enc2native to do the same thing on Linux and Windows. If you really want UTF-8, you can use enc2utf8. -Winston [[alternative HTML version deleted]]