Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TIdMessage and swedish letters

Status
Not open for further replies.

larsrosen

Programmer
Oct 8, 2008
1
SE
Hello!

I'm trying to send emails using TIdSMTP and TIdMessage and it works fine.

But when I put Swedish letters (åäö) in the message or subject the dots or rings get removed so I end up with aao and that is not god for the swedish language.

Can anyone help me ?

/Lars
 
you can specify the character encoding in TIdMessage:

aMsg.Encoding := meMIME;
aMsg.CharSet := ISO-8859-1'; // force swedish encoding

I you have non standard characters in the subject/recipient/sender fields you also need to encode the Header of the mail

/Daddy


-----------------------------------------------------
What You See Is What You Get
Never underestimate tha powah of tha google!
 
Make sure the CharSet of IdMessage is set to UTF-8.
If it is, see if changing it to ISO-8859-15.
Atleast check the CharSet, and try changing it around.
I don't have delphi here so I can't check to make sure UTF-8 or ISO is correct.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top