[R] Problem with writing a CSV file in UTF-8 formate

2010-06-22 Thread venkata kirankumar
Hi all, I have a problem with writing a *.CSV file in UTF-8 formate I tried to write a dataframe named "dfPREINDX" to the new file named "preindx.csv" in below formate write.table(dfPREINDX,PreIndex,fileEncoding="UTF-8",sep="|",row.names=FALSE) but its throed an error like Error in write.tabl

Re: [R] Problem with writing a CSV file in UTF-8 formate

2010-06-22 Thread jim holtman
If you look at the help for write.table you will see that there is no 'fileEncoding' parameter. I would suggest you use a connection ('file') where you can specify the encoding. On Tue, Jun 22, 2010 at 9:00 AM, venkata kirankumar wrote: > Hi all, > I have a problem with writing a *.CSV file in U

Re: [R] Problem with writing a CSV file in UTF-8 formate

2010-06-22 Thread Shotwell, Matthew S
CSV) file, rather a "|" separated values file. -Matt From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] On Behalf Of venkata kirankumar [kiran4u2...@gmail.com] Sent: Tuesday, June 22, 2010 9:00 AM To: r-help@r-project.org Subject: [R] Pro

Re: [R] Problem with writing a CSV file in UTF-8 formate

2010-06-22 Thread Duncan Murdoch
On 22/06/2010 9:00 AM, venkata kirankumar wrote: Hi all, I have a problem with writing a *.CSV file in UTF-8 formate I tried to write a dataframe named "dfPREINDX" to the new file named "preindx.csv" in below formate write.table(dfPREINDX,PreIndex,fileEncoding="UTF-8",sep="|",row.names=FALSE)

Re: [R] Problem with writing a CSV file in UTF-8 formate

2010-06-22 Thread venkata kirankumar
Hi Murdoch, first of all thanks allot for your suggestion. I tried the way you suggested but while opening in notepad and checking its showing that the file is in ANSI can any thing else I can do for this Thanks in advance kiran On Tue, Jun 22, 2010 at 7:02 PM, Duncan Murdoch wrote: > On 22/06/2

Re: [R] Problem with writing a CSV file in UTF-8 formate

2010-06-22 Thread Duncan Murdoch
On 22/06/2010 10:39 AM, venkata kirankumar wrote: Hi Murdoch, first of all thanks allot for your suggestion. I tried the way you suggested but while opening in notepad and checking its showing that the file is in ANSI can any thing else I can do for this What makes you think notepad is able

Re: [R] Problem with writing a CSV file in UTF-8 formate

2010-06-22 Thread Matt Shotwell
Duncan and I had nearly identical code examples in our replies. This is becoming a theme. Great minds think alike??? :-) UTF-8 is backward compatible with ASCII. Hence, if your "|" separated table contains only ASCII, the UTF-8 encoded file may be indistinguishable from an ASCII encoded file. Mayb