• 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: MacRoman to hex-ISO Latin 1
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MacRoman to hex-ISO Latin 1


  • Subject: Re: MacRoman to hex-ISO Latin 1
  • From: Arthur J Knapp <email@hidden>
  • Date: Mon, 20 May 2002 10:19:50 -0400

> Date: Mon, 20 May 2002 12:41:23 +0200
> Subject: MacRoman to hex-ISO Latin 1 [was: MacRoman to ISO Latin 1
> [was:...]]


> From: Helmut Fuchs:

> ... 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

This is brilliant, Helmut. :)



> From: JJ <email@hidden>

> Cool. This is the final result:

> set ChartToTranslat to "a" -- a-acute
>
> charToISOLatin1(ChartToTranslat , "ascii")
> --> "7" (this is ascii character 255)

> on charToISOLatin1(this_char, desiredResult)

This is great, JJ. :)


It just makes me so happy when scripters take that extra step to
fluant their use of an AppleScript bug... ;-)



{ Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
<mailto:email@hidden>
try
<http://homepage.mac.com/ewalet/DeskTop.html>
on error number -128
end try
}
_______________________________________________
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.

  • Prev by Date: Re: Jon's Commands X (d1)
  • Next by Date: Re: osascript - path to me
  • Previous by thread: Re: [OFF} Simple Digital Audio Recording
  • Next by thread: how to set RGB color
  • Index(es):
    • Date
    • Thread