From: Brian Candler Date: 2010-06-21T18:07:48+09:00 Subject: Re: Windows, Dir class and special characters Peter John wrote: > I'm using ruby 1.9.1 on windows 7 x64. If I manually make a few test > files that have Polish characters in their names, e.g. testżłś.txt, and > then use the Dir class to get a directory listing, I find that the > incoming encoding is Windows-1252 and that the filenames have lost their > special characters - e.g. it would look like testzls.txt inside ruby. People have reported that 1.9.2 is better in this area, so you could give that a go. Unfortunately 1.9.2 isn't released yet, but there's a 1.9.2-preview3 you could try, and report back on. Alternatively, switch to ruby 1.8.7 where you don't have to deal with this encoding business at all, and your filenames will be returned to you as pristine and unmangled byte strings. -- Posted via http://www.ruby-forum.com/.