Re: Strange behavior with do shell script, the Unix-command sed and "»" or "«". Encoding problem?
Re: Strange behavior with do shell script, the Unix-command sed and "»" or "«". Encoding problem?
- Subject: Re: Strange behavior with do shell script, the Unix-command sed and "»" or "«". Encoding problem?
- From: Shane Stanley <email@hidden>
- Date: Wed, 22 Oct 2014 17:42:01 +1100
On 22 Oct 2014, at 5:03 pm, Christopher Stone <email@hidden> wrote:
I found a localization-sensitive method on one of the Alfred forums which should please Yvan.
I'm all for keeping Yvan happy, but isn't it a bit pointless in this situation? I mean, the real issue is getting the UTF-8 recognized. Axel used fr_FR, but he could have used any locale, as long as he chose UTF-8:
do shell script "export LANG=zh_CN.UTF-8; echo " & quoted form of "Bonjour « hello » world" & " | sed -E " & quoted form of "s/ [»]/_»/g"
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden