Skip to content

read.csv and FileEncoding in Windows version of R 2.13.0

3 messages · Duncan Murdoch, Alexander Peterhansl

#
On 01/06/2011 6:00 PM, Alexander Peterhansl wrote:
That file could be pure ASCII, or could include a byte order mark.  I 
tried both, and I didn't get the error your saw.  So I think I need to 
see the file to diagnose this.

Could you put it in a .zip file and email it to me?

Duncan Murdoch
4 days later
#
Hello Duncan, thank you very much for your reply.  The file is attached.

Again, the issue is that opening this UTF-8 encoded file under R 2.13.0 yields an error, but opening it under R 2.12.2 works without any issues.

The command I used to open the file is:
read.csv("test.csv",fileEncoding="UTF-8",header=FALSE)

(As you'll see, the file does have a byte order mark.)

Regards,
Alex


-----Original Message-----
From: Duncan Murdoch [mailto:murdoch.duncan at gmail.com] 
Sent: Wednesday, June 01, 2011 7:35 PM
To: Alexander Peterhansl
Cc: R-devel at r-project.org
Subject: Re: [Rd] read.csv and FileEncoding in Windows version of R 2.13.0
On 01/06/2011 6:00 PM, Alexander Peterhansl wrote:
That file could be pure ASCII, or could include a byte order mark.  I tried both, and I didn't get the error your saw.  So I think I need to see the file to diagnose this.

Could you put it in a .zip file and email it to me?

Duncan Murdoch