Error in make.names(col.names, unique = TRUE) : string multibyte inválida 6

Hi, To the try import file this message return in console: Error in make.names(col.names, unique = TRUE) :
string multibyte inválida 6
I tried use encoding=UTF=8 but no sucess. Below line of code:
library(readr)
barragem <- read.csv2("Barragens.csv",encoding = "UTF-8" , sep = ",")

I assume there are special symbols in your file? Two things that might work (not sure since I don't know what language or what symbols are causing the issue):

  1. Add fileEncoding = "latin1" inside read.csv2()
  2. Open the file in a text editor (like Sublime, Textmate, or Notepad++) and then save it specifically as UTF-8

Thanks @GeraldineK, I change type of archive for UTF-8 in excel and was.

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.