On Jul 8, 2009, at 11:30 AM, Thomas Thomassen wrote:

> I checked the $KCODE variable and it returns "UTF8".
>
> Now, what does that do to Ruby?

I answer that question in detail in this article:

=
http://blog.grayproductions.net/articles/the_kcode_variable_and_jcode_libr=
ary

> Why does File.exist?('c:\Test =E6=F8=E5') fail if it's UTF-8 encoded?

The IO methods are not $KCODE aware.  You will likely need to =20
transcode the Strings you pass them.

James Edward Gray II=