From: Yukihiro Matsumoto Date: 2006-01-13T01:17:58+09:00 Subject: Re: Dir.entires and UTF-8 Hi, On 1/13/06, Timo Hoepfner wrote: > What's going on here? Ths is on MacOS X 10.4.4. Looks like > Dir#entries returns strings encoded with some encoding I didn't > expect. How can I convert the string to UTF8? You have got a corrent UTF-8 string. Unlike Windows XP, Mac OS X decomposes character components as much as possible (Sorry I forgot the correct term for this policy). So what you got: > # => ["a", "", "o", "", "u", "", "�", "A", "", "O", "", "U", ""] is decomposed form of your string, a+umlaut, o+umlaut, etc. matz.