• 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: Unicode, AppleScript, and the shell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unicode, AppleScript, and the shell


  • Subject: Re: Unicode, AppleScript, and the shell
  • From: John Delacour <email@hidden>
  • Date: Fri, 25 Jul 2003 00:31:13 +0100
  • Mac-eudora-version: 6.0a28

At 3:26 pm -0400 24/7/03, Sean McBride wrote:

Does anyone know of a utility that will let me type unicode strings and
spit out this hex notation? Example I type:

/Users/smcbride/Desktop/c$c3c9cc<c)

And I get:

00550073.....

You can do practically anything, including this, with a one line pack/unpack (see perlfunc) statement in perl, or you can build a string like this:


set s to "qq~\\x{65e5}\\x{672c}\\x{8bed}~"
do shell script "perl -e 'print hello . " & s & "'"

JD
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Unicode, AppleScript, and the shell (From: Christopher Nebel <email@hidden>)
 >Re: Unicode, AppleScript, and the shell (From: "Sean McBride" <email@hidden>)

  • Prev by Date: AppleScript --> HTML
  • Next by Date: Accessing a <<class X>> property of record
  • Previous by thread: Re: Unicode, AppleScript, and the shell
  • Next by thread: Re: Unicode, AppleScript, and the shell
  • Index(es):
    • Date
    • Thread