Re: Html message with accents

Giganews Newsgroups
Subject: Re: Html message with accents
Posted by:  Remy Lebeau \(Indy Team\) (
Date: Fri, 6 Nov 2009

"Alexandre" <alexandrepires20…> wrote in message

> Remy, I'm trying to send a Html message with accents:

Which version of Indy are you using?  Accents should be working fine as long
as you are using an up-to-date version, and the OS's default codepage
supports those characters to begin with.

> But the mail is coming this way:
> test: A! AC A?

That means the original characters are being converted to UTF-8 correctly
(as the UTF-8 encoded form of the text you have shown is 'test: á é ç'),
but then the resulting bytes are getting converted back to a different Ansi
codepage somewhere along the way.  Can you show the raw data that your
client is actually transmitting? Use a packet sniffer such as Wireshark, or
just use one of the TIdMessage.SaveTo() methods.

Remy Lebeau (TeamB)


In response to

Html message with accents posted by Alexandre on Fri, 6 Nov 2009