powermail-discuss Digest #2936 - Friday, August 5, 2011
Re: AppleScript Sender Question
by "Tom Dillon" <[email protected]>
----------------------------------------------------------------------
Subject: Re: AppleScript Sender Question
From: "Tom Dillon" <[email protected]>
Date: Thu, 4 Aug 2011 17:58:30 -0600
Howdy Beatrix,
Thanks for the info. You put me on the right track. It's two byte code alright
and it has length values in front of the name and address, which are encoded
UTF-16. I wrote some code to parse the name and email address to compare to
existing contacts in a database. So, all is right in Mudville.
Thanks a million Beatrix!
>chinese characters almost always are an indication that text encoded as
>UTF8 is interpreted as UTF16. A simple explanation is here:
>
>http://www.satimage.fr/software/en/smile/text/unicode_and_applescript.html
>
>That the sender is UTF16 is most likely a bug (looks very nice, by the
>way). I didn't find a way to do the conversion in AppleScript. The
>following page has a simple script to do this with Python:
>
>http://macscripter.net/viewtopic.php?id=25319
>
>HTH
--
------------------------------------------------------------------
Tom Dillon 825 N. 500 W.
DataCraft Moab, UT 84532
[email protected] 720/209-6502
------------------------------------------------------------------
Wading through the absurd leads to an island of clarity.
--- Sunastar
------------------------------------------------------------------
----------------------------------------------------------------------
End of powermail-discuss Digest