ANN: Some routines for Spotlight
thierry.arbellot at wanadoo.fr
Sun Aug 21 16:29:52 CDT 2005
I don't have Tiger to test mdfind, but if I understand well the
problem, OS X filenames are UTF8 encoded.
The following function will convert from UTF8 to ANSI, just replace
"thefilename" with the actual string to decode.
I hope this helps,
On 2005, Aug 21, , at 21:28, Yves COPPE wrote:
> Le 21-août-05 à 21:20, Andre Garzia a écrit :
>> I am trying here with accents and special chars... it appears that
>> mdfind returns a mixed string. Like I have this file called çedilha
>> (which is wrong portuguese, but serves right for our experiments).
>> mdfind will return a string using with the ç encoded in what I think
>> is more than two bytes and the rest of the filename in good plain
>> text. So using uniDecode to reduce from twobytes representation will
>> screw the rest of the filename, using uniEncode to put the rest of
>> the string up to two bytes will also not work for it will re-encode
>> the special chars...
>> I am a little lost too, need more expert help.
> Hi Andre,
> I'm happy to see that the problem does exist, non only on my computer.
> So I'm sure someone on the list will find the correction.
> Yves COPPE
> yvescoppe at skynet.be
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
More information about the use-livecode