Re: Unicode Bad Characters
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