On Jul 7, 2009, at 7:28 AM, Thomas Thomassen wrote:

> Searching the net I found some hacks that converted UTF-8 into single
> byte characters: str_utf8.unpack('U*').pack('C*')

What you are doing there is transcoding from UTF-8 to Latin-1 (or =20
ISO-8859-1).  Here's the proof:

$ ruby -KU -r iconv -e 'utf8 =3D "=E6=F8=E5=C6=D8=C5"; p =20
utf8.unpack("U*").pack("C*") =3D=3D Iconv.conv("ISO-8859-1", "UTF-8", =
utf8)'
true

James Edward Gray II=