• 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: Applescript and unicode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Applescript and unicode


  • Subject: Re: Applescript and unicode
  • From: Brian Johnson <email@hidden>
  • Date: Wed, 20 Feb 2008 15:15:42 -0800 (PST)


On Wed, 20 Feb 2008, Mark J. Reed wrote:

You have to take special steps to compile an application on 10.5 so
that it runs properly on 10.4.  I dont use Studio, but this has come
up here recently, so you night try the archive (or better, the archive
of the studio list).

It does sound like a Unicode issue - it's not inserting "extra
characters", but rather using two bytes per character - called
"UTF-16" or "UCS-2" encoding.  If all the characters in question have
scalar values below 256 then every other byte will be zero.  But most
Mac apps that deal with text should handle such a file fine...

It may look OK, but it may not behave OK in other applications, including browsers (html with "Gremlins" between characters (as TextWrangler calls em) doesn't work terribly well in some cases, nor do string matching operations within applescript.


There was significant discussion about this last fall some time, but I think the solution was to add one of "as plain text" or "as <<class utf8>>" to the "write" lines if the script is creating text files. I was recently trying to remember which of those was the preferred solution, but haven't had a chance to go archive-diving.

I don't think this is a ASS issue really, but rather one of the underlying AS text model for 'normal' text, which shifted to unicode recently (under which cat species I don't remember).

  -b.johnson, dept of architecture, university of washington, seattle
_______________________________________________
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: Applescript and unicode
      • From: Shane Stanley <email@hidden>
References: 
 >Applescript and unicode (From: Chris Swain <email@hidden>)
 >Re: Applescript and unicode (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: Applescript and unicode
  • Next by Date: Re: Applescript and unicode
  • Previous by thread: Re: Applescript and unicode
  • Next by thread: Re: Applescript and unicode
  • Index(es):
    • Date
    • Thread