Skip to content
Prev 42585 / 398506 Next

Wich character coding for source under Windows?

Unless you change it, no encoding is used.  That is, characters are just
treated as 8-bit numbers (as they are in all C programs).  Encodings are
only relevant if you want to display a character (or type at a keyboard),
and in general R assumes that you have set your fonts and keyboard to a 
single consistent encoding (which Petr Pikal had not).

You can reencode on input (See ?connections) and on output where there is
an encoding step (see ?postscript).  So if you have Mac files you can
reencode them on read transparently.  What you can't do is to re-encode
text files on output, mainly because there is no way to mark such files 
are encoded.
On Fri, 9 Jan 2004, Philippe Grosjean wrote:

            
I don't believe there is a single `DOS' encoding, rather a whole series of 
codepages.  And ASCII is a 7-bit encoding.  There are various wide 
encodings out there too.