ANN: Some routines for Spotlight
Thierry Arbellot
thierry.arbellot at wanadoo.fr
Sun Aug 21 17:29:52 EDT 2005
Yves, Andre,
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.
put unidecode(uniencode(thefilename,"utf8"),"ansi")
I hope this helps,
Thierry
On 2005, Aug 21, , at 21:28, Yves COPPE wrote:
>
> Le 21-août-05 à 21:20, Andre Garzia a écrit :
>
>> Yves,
>>
>> 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.
>>
>> Andre
>>
>
>
> 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.
>
>
> Greetings.
>
> 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:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list