• 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: Design Report for Scripts?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Design Report for Scripts?


  • Subject: Re: Design Report for Scripts?
  • From: Shane Stanley <email@hidden>
  • Date: Sat, 21 Nov 2015 23:23:34 +1100

On 21 Nov 2015, at 11:07 PM, Yvan KOENIG <email@hidden> wrote:
>
> In the original scripts which I was forced to save as .applescript files, there were some chinese characters which may be why the script was encoded in Utf 16.

Just to confuse things more... There's no rule on what encoding is used. Xcode, Script Debugger (which Steve uses) and ASObjC Explorer all use UTF-8 (which SE also reads).

So it's probably safest to try UTF-8 first, and if that errors (which is more or less bound to happen if it's not UTF-8 or UTF-8-compatible), try MacRoman and look for the UTF-16 BOM at the beginning ("ˇ˛"), and if you find that, then use UTF-16.


--
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: Design Report for Scripts?
      • From: Yvan KOENIG <email@hidden>
References: 
 >Design Report for Scripts? (From: "S. J. Cunningham" <email@hidden>)
 >Re: Design Report for Scripts? (From: Yvan KOENIG <email@hidden>)
 >Re: Design Report for Scripts? (From: Yvan KOENIG <email@hidden>)
 >Re: Design Report for Scripts? (From: Yvan KOENIG <email@hidden>)
 >Re: Design Report for Scripts? (From: Shane Stanley <email@hidden>)
 >Re: Design Report for Scripts? (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Design Report for Scripts?
  • Next by Date: Re: Design Report for Scripts?
  • Previous by thread: Re: Design Report for Scripts?
  • Next by thread: Re: Design Report for Scripts?
  • Index(es):
    • Date
    • Thread