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

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,534
Members
45,007
Latest member
OrderFitnessKetoCapsules

Latest Threads

Top