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

Re: Bad Character


  • Subject: Re: Bad Character
  • From: "Mark J. Reed" <email@hidden>
  • Date: Thu, 27 Sep 2007 22:02:27 -0400

Well, it's not Ascii, for one thing.  Nothing over 127 is.  So you
said you're using MacRoman... Could be that whatever you're using for
email doesn't know that?

In Latin-1 and other ISO character sets, the codes 128 through 159 are
control sequences, not printable characters.  138 is a justifying
horizontal tab, I think...



On 9/27/07, Luther Fuller <email@hidden> wrote:
> An update ...
>
> More experimenting revealed that the offending character actually has
> ascii value 138. This is shown as an "è" character in an ascii table.
> When I displayed the subject text with ...
> 	display dialog "2" default answer subText
> the character displayed is "Ä", but when this is pasted into Smile as
> a comment it becomes "ä".
>
> I have encountered Mail subject lines with unicode characters that
> translate to ? with no problem, but ascii 138 seems to be an
> exception. Should I remove just ascii 138 or should I remove all
> characters with ascii number > 127 ?
>
> I can remove all ascii > 127 with this code ...
>
> 	set maxLen to (length of subText)
> 	repeat with i from maxLen to 1 by -1
> 		ASCII number (character i of subText)
> 		if the result > 127 then
> 			if i = 1 then
> 				text 2 thru -1 of subText
> 			else if i = maxLen then
> 				text 1 thru -2 of subText
> 			else
> 				(text 1 thru (i - 1) of subText) & (text (i + 1) thru -1 of subText)
> 			end if
> 			set subText to the result
> 		end if
> 	end repeat
>
> This solves my problem, but ... something is wrong with ascii char
> 138 !!!
> Anyone know what ? _______________________________________________
> 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
>


--
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: Bad Character
      • From: KOENIG Yvan <email@hidden>
References: 
 >Bad Character (From: Luther Fuller <email@hidden>)
 >Re: Bad Character (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Bad Character
  • Next by Date: Re: [InDesign CS3]package command bug
  • Previous by thread: Re: Bad Character
  • Next by thread: Re: Bad Character
  • Index(es):
    • Date
    • Thread