Topic Related to strings

In my CSV file have got a column containing the € symbol
For example €750K,€780K ...........

What encoding should I specify in the read.csv file?

When deploying the shiny app it shows me an error-invalid multibyte string

Hi,

When there are special characters in text this is usually saved as UTF-8. The easiest way to read in these csv files is to use the readr function read_csv(). This one detects UTF-8 and loads the data in properly. Alternatively, you can specify the encoding in the base function like so: read.csv("mydata.csv", encoding = "UTF-8")

Hope this helps,
PJ

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.