
14 Jan
2011
14 Jan
'11
3:04 p.m.
Alexander Lamaison wrote:
Presumably, Mac OS X returns paths in the same encoding as it expects to receive them? So just passing them around and eventually back to the OS will always work regardless of encoding?
Yes, it does (because it's UTF-8). It doesn't work on Windows in general - if the file name contains characters that can't be represented in the default code page, they are replaced by something else, typically '?', sometimes the character without the acute mark. Either way, the name can no longer be used to refer to the original file.