• 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
MacRoman to ISO Latin 1 [was: Re: URL encode trouble]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MacRoman to ISO Latin 1 [was: Re: URL encode trouble]


  • Subject: MacRoman to ISO Latin 1 [was: Re: URL encode trouble]
  • From: Helmut Fuchs <email@hidden>
  • Date: Sun, 19 May 2002 23:46:36 +0200

At 13:29 Uhr -0400 19.05.2002, Arthur J Knapp wrote:
> And, do you know a quick AS solution to translate "a" to "E1" (not "87")?

I don't know if anyone has created a Scripting Addition for conversion
to ISO 8859-1. I could create a vanilla conversion handler, it would just
be a question of creating a map between the high-bit characters of the
Macintosh standard character set and the ISO standard. We would also have
to decide how to handle a character that exists in one character set but
not in the other.
I haven't been following this thread closely, so it may already be solved, but Unicode and ISO 8859-1 are nearly identical in the range between 0x00 and 0xff (excluding the range from 0x80 to 0x9f).

You could use the following to let AppleScript do the Job (don't know if this little quick and dirty Hack still works with current AS Versions though):

"a" as Unicode text -- this is a-acute
{{coercionTrick:result}}
result as string
ASCII number of last character of result
==> 225

Or just use BBEdit.

But by far the best and least hacky option is to use Cyclone:
http://homepage.mac.com/tkukiel/

HTH,

Helmut
--
_______________________________________________
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: URL encode trouble (From: Arthur J Knapp <email@hidden>)

  • Prev by Date: Re: URL encode trouble
  • Next by Date: Re: osascript - path to me
  • Previous by thread: Re: URL encode trouble
  • Next by thread: Re: URL encode trouble
  • Index(es):
    • Date
    • Thread