SHELL text encoding OS X?

Klaus major-k klaus at major-k.de
Sat Jul 26 09:05:43 EDT 2014


Hi Warren,

Am 26.07.2014 um 15:01 schrieb Warren Samples <warren at warrensweb.us>:

> On 07/26/2014 07:44 AM, Klaus major-k wrote:
>> Hi friends,
>> 
>> i am currently using some shell commands, mainly "mdfind", to get a list of files.
>> But german UMLAUTS etc. are not correctly displayed.
>> 
>> i thought the shell output would be UTF8, but unidecode(listoffiles) produces lots of glibberish 8-)
>> -> Grabber fuÃàr Anyone.rtf
>> 
>> should of course be:
>> -> Grabber für Anyone.rtf
>> 
>> This even happens with LC 7dp7, but shouldn't right?
>> 
>> Anyway, what can I do win LC 6.6.2?
>> Any hints very appreciated!
>> 
>> 
>> Best
>> 
>> Klaus
>> --
> 
> In LiveCode 7 try something like:
> put textDecode(shell("myCommand"),"utf-8")
> Works for me retrieving data from shell in Linux.

thank you, but my question was:

>> Anyway, what can I do in LC 6.6.2?

;-)

> Warren

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list