SHELL text encoding OS X?

Warren Samples warren at warrensweb.us
Sat Jul 26 09:01:32 EDT 2014


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.

Warren





More information about the use-livecode mailing list