Hello.
I’m reading a csv file into my application, and when I enconter a
special character like ç, I have a problem, since my database is in
utf-8. Is there a way to convert a string to utf-8?
Hello.
I’m reading a csv file into my application, and when I enconter a
special character like ç, I have a problem, since my database is in
utf-8. Is there a way to convert a string to utf-8?
Pedro C. wrote:
Hello.
I’m reading a csv file into my application, and when I enconter a
special character like ç, I have a problem, since my database is in
utf-8. Is there a way to convert a string to utf-8?
OK. Found it myself
For someone loking for the same thing …
On Feb 19, 2007, at 7:10 PM, Pedro C. wrote:
I’m reading a csv file into my application, and when I enconter a
special character like ç, I have a problem, since my database is in
utf-8. Is there a way to convert a string to utf-8?
Yes, use iconv. You’ll need to know the input character encoding, or
give
http://raa.ruby-lang.org/project/charguess/
a try otherwise.
– fxn
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs