Encoding issue with file upload

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 I tried to convert file content in
UTF-8 with Iconv, but i get some trouble to determine the exact original
encoding.

Any help would be appreciated.

Thanks

Attachments:
http://www.ruby-forum.com/attachment/3957/Image_1.png

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 I tried to convert file content in
UTF-8 with Iconv, but i get some trouble to determine the exact original
encoding.

Any help would be appreciated.

Thanks

that's an encoding issue with   spaces.

Thank you for answers. Is there an easy way to clean up my file before
parsing it?