> I still don't understand why it's necessary to change from the orginal
> charsetcode to the ideal charset code! In my case, the charset code of the
> source of email, which being loaded into mimemess, is known. Why can I
> simply set 
> c := FromCP
> instead?

It is because e-mail world is not simple as you think:

- Encoding of mail message headers is totally independent from encoding 
uised in some mail message body. (for example, 'subject' can contain 
chars from totally different charset then charset used in mail message!)

- Each mail message body can be divided to any count of message parts, 
and each part can have totally different charsets.

- What is worst, you can combine various encodings within one message 
header. For example, each word in 'subject' can use totally different 
encoding.

- In some countries operating system using different encoding then is 
allowed in e-mail. You must allways convert charset in this case.


--
Lukas Gebauer.

E-mail: [EMAIL PROTECTED]
WEB: http://www.ararat.cz/synapse - Synapse Delphi and Kylix TCP/IP 
Library



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to