From: Peter John Date: 2010-06-21T09:39:09+09:00 Subject: Windows, Dir class and special characters Hi, 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. I've spent the larger part of the day reading up on all the encoding stuff in 1.9.1, tried things like # encoding: utf-8 and so on with no success. How do I get into ruby the filenames that show up in windows with Polish, Chinese, or Russian characters? Would be even better to find a method that works universally on Windows / Mac / Linux platforms. -- Posted via http://www.ruby-forum.com/.