Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "read from" and non-lo-ascii characters



Michelle Steiner wrote:

>Hencenforth, the term is "single-byte characters whose identifying 
>numbers are in the range of 127 to 255."

128-255. And still completely useless - the meaning of those 128 codepoints is totally dependent on the encoding used (Latin-1, MacRoman, Greek, Cyrillic, etc). For example, codepoint 162 represents the same glyph in Latin-1 and MacRoman, but different glyphs in Greek and Cyrillic:

tell application "TextCommands"
	set c to string characters 162
	set lst to {}
	repeat with enc in {"latin1", "macroman", "greek", "cyrillic"}
		set lst's end to convert to unicode c from enc
	end repeat
end tell
lst

has
-- 
http://freespace.virgin.net/hamish.sanderson/
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.