Reading files in UTF-8

T

tomsoft

Hello everybody,


I am deseperatly trying to read file encoded in UTF-8, to populate
the Globalize database. But it seems that the UTF-8 encoding is not
recognized, and read as an ASCII char. Is there any specific
manipulation to do to achieve this?
Thanks in advance for any help....

Thomas Landspurg
http://www.8motions.com
 
N

Nobuyoshi Nakada

Hi,

At Wed, 5 Sep 2007 04:55:04 +0900,
tomsoft wrote in [ruby-talk:267587]:
I am deseperatly trying to read file encoded in UTF-8, to populate
the Globalize database. But it seems that the UTF-8 encoding is not
recognized, and read as an ASCII char. Is there any specific
manipulation to do to achieve this?

UTF-8 is ASCII compatible, so if your data don't contain any
multi-byte sequences, they should seem like as ASCII data.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,264
Messages
2,571,065
Members
48,770
Latest member
ElysaD

Latest Threads

Top