Hey guys, I'm reading and importing a CSV file fro...
# beginners
m
Hey guys, I'm reading and importing a CSV file from a SFTP to NetSuite, the problem is that in the portuguese language we have some special chracters such as ´ ^ ~ ç ` While reading this file, this characters are converted into �, Is there a way to convert back to original?
d
presuming you're using the
N/sftp.Connection.download()
to get a
file.File
. You could try checking/changing the
encoding
property of the file See: NS Help: file.Encoding (enum) NS Help: File.encoding (file.File prop)
🙌 1
m
@David B man, thank you! I was trying this way
downloadedFile.Encoding = file.Encoding.ISO_8859_1;
Maybe because of capital E in the beginning of Encoding, my code wasn't working
d
yeah, properties are lower case, enums start with a capital. Don't ask me why though =P