Skip to content
Prev 42594 / 398506 Next

Wich character coding for source under Windows?

As I said, Rterm/Rgui do no encoding.  If you use cat or sink, the exact 
numeric char you used is written out.  Maybe if you *display* it you see 
something different, but I have already explained that.

Unless you do octal/hex dumps on files you will be confused by display 
encodings.
On Fri, 9 Jan 2004, Philippe Grosjean wrote:

            
No, it is the native encoding.  There is no `ANSI' encoding, but your 
machine is probably set up to use WinANSI (not ANSI).
Not true: S can use 8-bit characters.
You *do* get the same behaviour.  If you do example(text) you get the same 
chars in RGui and Rterm, even if 

options(pager="console")
help(text)

displays them differently.  That is nothing to do with Rterm, though.

And if you want to transfer files from Windows to another OS, you have to 
tell R on that OS what encoding you used.  That is all.