Ok, i found a fix for this, using Iconv lib, and it seems to work
correcty.
But i still get an issue with accented character. If i get a surname
with accented character, like Cédric, Iconv returns me C'edric. I've
got similar problems with every accented character.
I read somewhere that i
Thank you for answers. Is there an easy way to clean up my file before
parsing it?
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
on Rails: Talk group.
To post to
Céd B. wrote:
Hello,
I've got some issue while trying to upload and read csv file on my
application. For some file, i get some odd character appearing when i
print the result, but not in my logs. Here joined a screen to explain
what i'm talking about.
I think it's an encoding issue, so
that's an encoding issue with nbsp; spaces.
As a follow-up, it could also be due to a BOM (byte order mark) issue.
--
Posted via http://www.ruby-forum.com/.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Ruby
4 matches
Mail list logo