From: matz@... (Yukihiro Matsumoto) Date: 2002-10-12T05:48:30+09:00 Subject: Re: UTF-8 Character Conversion to HTML Hi, In message "UTF-8 Character Conversion to HTML" on 02/10/12, Ben Schumacher writes: |I'm trying to convert some characters from a text file that are |double-byte characters from Czech and Polish into HTML entities. I have |a Ruby script that I'm trying to do this with, but when I'm scanning, |I'm getting several characters, instead of just one. Can somebody help |me out here? I imagine I'm not doing this in a terribly efficiently |anyhow, so an optimizations would be appreciated. Here's the text I'm |converting: | | Aguarda carregamento da p�ágina.... You have to make sure the encoding of your input. Is it really in UTF-8? If it's not (I suspect it's in ISO-8859-1), you should convert them to UTF-8 before applying UTF regexp. matz.