Thank you Dan for your answer. I'm not sure I well understood all you wrote
but �  
I read the part of a message with the following script (an extract) :
            try
                set allPart to every part of theMessage
                set thetype to ""
                set theSub to ""
                set theCode to ""
                set theChar to ""
                repeat with temp in allPart
                    set thetype to thetype & type of temp & "   <<" & type
of temp & ">>" & return & "    "
                    set theSub to theSub & subtype of temp & "   <<" &
subtype of temp & ">>" & return & "    "
                    set theCode to theCode & encoding of temp & "   <<" &
encoding of temp & ">>" & return & "    "
                    set theChar to theChar & character set of temp & "   <<"
& character set of temp & ">>" & return & "    "
                end repeat
            on error theErr
                display dialog theErr
            end try

A French message with accents give the following :
            display dialog "type : " & thetype  <-- text
            display dialog "subtype : " & theSub  <-- html
            display dialog "encoding : " & theCode   <-- quoted printable
            display dialog "character set : " & theChar   <-- ISO-8859-1

But I noticed that if I apply this script on a message extracted from my
French digest with the command
>>            make new incoming message with properties �
>>                   {source:gNewMsgSource, �
>>                    read status:untouched, �
>>                    character set:"ISO-8859-1", � -- or  "x-macroman"
>>                    account:gAccount} �
>>             at gDestinationFolder
this give nothing; all 'parts' of the message are void except the encoding
part ('no encoding' !)  (The new message seems correct except the letters
with accents). How can I make a new message with correct parts and accents?

Antoine.

Le 7/08/01 8:24, Dan Crevier <[EMAIL PROTECTED]> a �crit�:

> The character set property only refers to a character set override.  If you
> want the character set of a particular part of a MIME message, you have to
> look at the MIME parts (part AppleScript element) to see the character sets
> of the various MIME parts in the message.  Outgoing and edited messages are
> stored as Unicode and the character set is not editable.
> 
> I'm not sure exactly what's going with the script.  If it looks okay in the
> display dialog command, that means it's probably MacRoman instead of
> iso-8859-1.  You might try setting the character set to "x-macroman".  I
> might have the name wrong though.
Yes, it is ok in the display dialog. Setting the character set to
"x-macroman" didn't change anything.

> On 8/6/01 11:07 PM, "Antoine P�rus" <[EMAIL PROTECTED]> wrote:
> 
>> Hello Everyone,
>> 
>> I'm trying to adapt a Philip Kearney's script in order to burst a French
>> digest. Every thing seems ok, but  I lose the letters with accents during
>> the message creation :
>> 
>>           display dialog  gNewMsgSource     -- source text ok, here
>>           
>>           -- create the message
>>            make new incoming message with properties �
>>                   {source:gNewMsgSource, �
>>                    read status:untouched, �
>>                    account:gAccount} �
>>             at gDestinationFolder
>> 
>> I tried adding the property 'character set' set to "Unicode" or "ISO-8859-1"
>> but without success �
>> Any idea?
>> 
>> I noticed also that this property (character set) is always void in all
>> messages from my mailbox I tested. Does anyone know why?
>> 

-- 
--------------------------- <[EMAIL PROTECTED]> ---------------------------
Antoine P�rus                                       Service informatique
Cnrs/In2p3/Lal  (Acc�l�rateur Lin�aire)    BP34 91898 Orsay Cedex France
Tel. 33-1-64 46 84 43                            Fax 33-1-69 07 94 04
---------------------------------ooO-=-Ooo----------------------------------



--
To unsubscribe:               <mailto:[EMAIL PROTECTED]>
To search the archives:
          <http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to