• 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: Bad Characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Bad Characters
      • From: Luther Fuller <email@hidden>
References: 
 >Bad Characters (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Bad Characters
  • Next by Date: Re: Bad Characters
  • Previous by thread: Re: Bad Characters
  • Next by thread: Re: Bad Characters
  • Index(es):
    • Date
    • Thread