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

Re: Unicode Bad Characters


  • Subject: Re: Unicode Bad Characters
  • From: "Mark J. Reed" <email@hidden>
  • Date: Fri, 8 Aug 2008 09:13:48 -0400

On Wed, Aug 6, 2008 at 5:18 PM, Luther Fuller <email@hidden> wrote:
> Late last year, I identified Unicode characters in the range [131 - 159]

Hm.  But not 128, 129, or 130?

>        repeat until (offset of (space & space) in subjectText) = 0
>                set AppleScript's text item delimiters to {space & space}
>                set wordList to (text items of subjectText) as list
>                set AppleScript's text item delimiters to {space}
>                set subjectText to wordList as text
>        end repeat -- multiple spaces replaced with single space
>
> The offset command would find 'pairs of spaces' that text item delimiters
>  could not see, resulting in an unending loop.

An odd bug, indeed.  I assume you worked around it by adding code to
exit the loop if the length of wordList is 1...

> I'm wondering if anyone knows if this fix is documented anywhere?

I haven't looked, but I wouldn't be surprised to find no specific fix
for this problem; it might be something that fell out of the general
improvements to Unicode support in AS 2.0, which I gather involved
rather a lot of rewriting.

--
Mark J. Reed <email@hidden>
 _______________________________________________
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: Unicode Bad Characters
      • From: Luther Fuller <email@hidden>
References: 
 >Unicode Bad Characters (From: Luther Fuller <email@hidden>)
 >Re: Unicode Bad Characters (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: InDesign CS3 export as JPEG - selection only
  • Next by Date: OOP AppleScript and self-initialization
  • Previous by thread: Re: Unicode Bad Characters
  • Next by thread: Re: Unicode Bad Characters
  • Index(es):
    • Date
    • Thread