From: Andreas Schwarz Date: 2004-04-12T19:39:17+09:00 Subject: Re: Problem with special characters like üöä (german: umlaut) ts wrote: >>>>>> "D" == Dirk Einecke writes: > >D> The file was created with this code: > > Well, if you are sure that it's encoded in UTF8 > >D> def writeMyFile(path,content) >D> file = File.open(path, File::WRONLY|File::TRUNC|File::CREAT) >D> content = CGI::unescapeHTML(content) > > content = content.unpack("U*").pack("c*") Or better: use iconv.