2009/7/7 Thomas Thomassen <
thomas@...>:
> [...]
> So it seems that the File class doesn't just handle ASCII, but maybe
> ANSI (Windows-1252) or ISO-8859-1. Or does this depend on some system
> setting?
> [...]
Hello,
how Windows interprets file paths depends on which API calls you use
and on the current system locale. There is one set of Windows API
functions that always use UTF-16 and another one that always uses the
encoding associated with the current system locale.
I think Ruby indirectly accesses the latter API and doesn't do any
character set conversions before passing strings to the operating
system, but I'm not entirely sure there.
cu,
Thomas
--
When C++ is your hammer, every problem looks like your thumb.