Re: Bad Characters
Re: Bad Characters
- Subject: Re: Bad Characters
- From: Christopher Nebel <email@hidden>
- Date: Wed, 15 Oct 2008 17:00:10 -0700
On Oct 15, 2008, at 3:17 PM, Luther Fuller wrote:
It seems there is a problem with (Unicode) characters 127 thru 159.
Those of you who are more expert than I should run and read this
short script ...
set nullChar to character id 0 -- or use nullChar = ""
repeat with charNr from 125 to 165
set testChar to character id charNr
if testChar = nullChar then
"null"
else
"[" & testChar & "]"
end if
display dialog ((charNr as text) & " = " & the result) buttons
{"Cancel", "Next"} default button 2
end repeat
The problem should be obvious. But why?
It looks like all non-printing control characters compare as equal.
Try the ASCII control range for comparison. Is this of practical
concern, or are you just poking around?
--Chris Nebel
AppleScript Engineering
_______________________________________________
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