tags:

views:

55

answers:

1

I am trying to export a data.frame to a csv with utf-8 encoding. I have tried generating the file with write.csv with no success and the help(write.csv) did not mention any specific advice on creating that specific output. Here is my current export line.

write.csv(prod_out, file="product_output.csv",append=FALSE,eol="\r")

Any advice you can offer is appreciated.

+3  A: 

Try opening a UTF8 connection:

con<-file('filename',encoding="utf8")
write.csv(...,file=con,...)
mbq
Yes, thank you for the advice. works perfectly.
analyticsPierce