Re: Clarification (was: Re: AppleScript and international characters)
Re: Clarification (was: Re: AppleScript and international characters)
- Subject: Re: Clarification (was: Re: AppleScript and international characters)
- From: John Delacour <email@hidden>
- Date: Thu, 22 Aug 2002 10:04:05 +0100
At 12:05 am +0200 22/8/02, Christina Zeeh wrote:
I don't know what gets done to my emails by the list software (or maybe it'
s Mail.app), but apparently the u-umlaut turns into a pipe-character
on the mailing-list.
It is not Mail.app.
The list software takes your message, which is mail-safe and encoded
in a 7-bit code precisely so that it will not get corrupted, and
changes it to 8-bit characters, which are NOT mail safe. The reuslt
is that anyone who receives the mail from a 7-bit server (and that
includes me), will get a "|".
Some people may be lucky and have an "8-bit clean" route to Apple's
server, but people like you and me have to accept that Apple will
corrupt all messages sent from the list containing 8-bit characters
This practice is very bad and in contravention of RFC 822 and ought
to be outlawed. People can complain to
<
mailto:email@hidden> but can expect the usual Apple
service.
If you have the TEC osax installed, you can follow the whole process
through with AppleScript:
(* You type u with umlaut *)
set varCharMac to "|" -- LATIN SMALL LETTER U WITH DIAERESIS
set varMacPoint to ASCII number varCharMac
--> 159 ($9F)
(* The mailer converts this to Latin-1 -- the character set used
on PCs -- and puts a line in the header to enable mailers to
transliterate on receiving the message... *)
-- Content-Type: text/plain; charset="iso-8859-1"
-- Content-Transfer-Encoding: Quoted-Printable
set varCharLatin1 to TECConvertText varCharMac fromCode "Mac" toCode
"iso-8859-1"
set varLatin1Point to ASCII number varCharLatin1
--> 252
(* The mailer converts this to Quoted-Printable... *)
set ls to characters of "0123456789ABCDEF"
set qp1 to item (varLatin1Point mod 16) of ls
set qp2 to item (varLatin1Point div 16) of ls
set qp to "=" & qp1 & qp2
(* ... "=BE" -- this is how your character travels.
The Apple list software then converts this to an 8-bit Latin-1
character and forwards the message to the list. In transit,
server software at many locations will subtract 128 from this
number, converting it to a 7-bit character ... *)
set varCode8 to get the ASCII number of varCharLatin1
set varcode7 to varCode8 - 128
set varStripped to ASCII character varcode7"
(* The result is a pipe
--> "|"
At 12:10 pm -0700 5/8/02, Kevin wrote:
We are aware of this issue and we are currently working on a solution.
While we do not yet have a timeline, we expect to correct this problem
when we upgrade to the latest version of our mailing list software
shortly after its release, which is expected in fall. (It is currently
beta.)
Kevin
Administrator, Lists.apple.com
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.