Re: [R] list of valid R encodings.in source(...,encoding=)

2014-07-11 Thread Hadley Wickham
It's documented in the Encodings section of ?file: "As from R 3.0.0 the encoding "UTF-8-BOM" is accepted for reading and will remove a Byte Order Mark if present (which it often is for files and webpages generated by Microsoft applications). If it is required (it is not recommended) when writing i

[R] list of valid R encodings.in source(...,encoding=)

2014-07-10 Thread John McKown
This question was spawned by another thread entitled "R on Windows crashes when source'ing UTF-8 file". The solution to that problem was to use the _proper_ encoding= parameter of the source() function. But where are they documented? Or how do I find them in R itself? I ask because the proper enco