Re: MacRoman to hex-ISO Latin 1
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.