On Jul 11, 2006, at 2:13 PM, Hrvoje Niksic wrote:

It could be that your system expects UTF-8 in file names and rejects
what it figures are invalid UTF-8 sequences.

I think that's true: MacOS / HFS+ seems to expect file names to be "decomposed unicode" in UTF-8. (I gather that means that accents are separated from their characters.) In the past I've managed to convert Unicode strings to usable file names by doing something like this in Perl:

    $file = Encode::encode("UTF8",
              Unicode::Normalize::decompose($unicode_string));

Also, http://developer.apple.com/qa/qa2001/qa1173.html

--
Jamie Zawinski       [EMAIL PROTECTED]                  http://www.jwz.org/
                    [EMAIL PROTECTED]      http://www.dnalounge.com/
                                         http://jwz.livejournal.com/



Reply via email to