[rkward-devel] character encoding on windows

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Fri May 13 12:11:08 UTC 2011


Hi,

On Friday 13 May 2011, meik michalke wrote:
> i'm not an windows expert, but can this somehow be related to the set
> encoding of the shell RKWard gets launched from in the first place? i
> assume the descriptions mentioned above were UTF-8 encoded at package
> build time. just let me know if you have an idea what i could try to nail
> this one down.

well, encoding issues tend to confuse me, badly. However, here are some ideas:

- To narrow down the problem, it's always a good idea to try in plain R, or in 
this case, in the plain Rgui.exe (also included in the installation bundle). 
If there is any difference between plain R and RKWard, be sure to also check 
for differences in Sys.locale().

- Writing R Extensions has a section on encoding issues: http://cran.r-
project.org/doc/manuals/R-exts.html#Encoding-issues . I'm not really sure, 
what to make of that, but I guess the best hints in there is to play with 
Encoding() (and possibly with enc2native()), and to check the "Encoding" field 
in the package's DESCRIPTION file.

- I did not understand, how exactly you pass text to / from the external 
commands. If this involves writing to text files as an intermediate step, then 
of course it may be instructive to check the encoding of those intermediate 
files.

Hope that helps a bit.

Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20110513/043b545b/attachment.sig>


More information about the Rkward-devel mailing list