From: Axel Etzold Date: 2007-06-28T00:09:06+09:00 Subject: Re: Encoding of strings received from db Dear Marko, I am pretty sure that nothing is wrong here - it's merely a question of what encoding settings you give your editor. I've tried the following: Open an editor, write the word "S�dstrasse" into it, and save it in UTF8 encoding as "a.txt" - so the "�" gets displayed correctly when you have UTF8 encoding set. Then execute the following script, which is in ISO-8859-1 encoding - that matters for the "�" in this "S�dstrasse": require "iconv" text=IO.readlines("a.txt").to_s p text => "S\303\274dstrasse" result = Iconv.conv("ISO-8859-1","UTF-8", text) p result => "S\374dstrasse" compare_to="S�dstrasse" p compare_to==result => true, because of the conversion made in Iconv p compare_to==text => false, because of the lack of conversion Best regards, Axel -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail