🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.socket
1 messages
1 total messages Started by Matthias Schuppe Mon, 15 Dec 2008 11:50
BCB 2009: Indy HTML-Mail
#40
Author: Matthias Schuppe
Date: Mon, 15 Dec 2008 11:50
36 lines
2192 bytes
Hi all,

  this is my code:

    IdSMTP = new TIdSMTP(Application);
    IdMessage = new TIdMessage(Application);
    IdMessage->ContentType = "multipart/related; type=\"text/html\"";
    IdText = new TIdText(IdMessage->MessageParts, NULL);
    IdText->Body->Add("<HTML>");
    IdText->Body->Add("HTML-Text");
    IdText->Body->Add("</HTML>");
    IdText->ContentType = "text/html";

  It works well with BCB 2007, but after migration to BCB 2009 there
is a problem with special german characters (Umlaut).

  I tried this:

    IdMessage->OnInitializeISO = IdMessageInitializeISO;
    IdMessage->CharSet = "UTF-8";
    IdMessage->ContentType = "multipart/related; type=\"text/html\";
charset=\"utf-8\"";
    IdText->CharSet = "UTF-8";
    IdText->ContentType = "text/html";

void __fastcall TfrmXXX::IdMessageInitializeISO(wchar_t
&VHeaderEncoding, UnicodeString &VCharSet)
{
  VCharSet = "UTF-8";
}

  But it doesn't solve the problem. Can anybody help me?

Regards,

Matthias
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads