• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Strange behavior with do shell script, the Unix-command sed and "»" or "«". Encoding problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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"


-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>

 _______________________________________________
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

  • Follow-Ups:
    • Re: Strange behavior with do shell script, the Unix-command sed and "»" or "«". Encoding problem?
      • From: Christopher Stone <email@hidden>
    • Re: Strange behavior with do shell script, the Unix-command sed and "»" or "«". Encoding problem?
      • From: quark67 <email@hidden>
References: 
 >Strange behavior with do shell script, the Unix-command sed and "»" or "«". Encoding problem? (From: quark67 <email@hidden>)
 >Re: Strange behavior with do shell script, the Unix-command sed and "»" or "«". Encoding problem? (From: Emmanuel LEVY <email@hidden>)
 >Re: Strange behavior with do shell script, the Unix-command sed and "»" or "«". Encoding problem? (From: quark67 <email@hidden>)
 >Re: Strange behavior with do shell script, the Unix-command sed and "»" or "«". Encoding problem? (From: Axel Luttgens <email@hidden>)
 >Re: Strange behavior with do shell script, the Unix-command sed and "»" or "«". Encoding problem? (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Strange behavior with do shell script, the Unix-command sed and "»" or "«". Encoding problem?
  • Next by Date: Re: Strange behavior with do shell script, the Unix-command sed and "»" or "«". Encoding problem?
  • Previous by thread: Re: Strange behavior with do shell script, the Unix-command sed and "»" or "«". Encoding problem?
  • Next by thread: Re: Strange behavior with do shell script, the Unix-command sed and "»" or "«". Encoding problem?
  • Index(es):
    • Date
    • Thread