Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: Codepage ? Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jvinis
Newbie
Newbie


Joined: 20 May 2008
Online Status: Offline
Posts: 18
Posted: 22 December 2008 at 1:50am | IP Logged Quote jvinis

When i create a EML file with MailBee.Mime.MailMessage, the computer have US-settings and the message contains Greek characters then when i read the message contains ???????? chars.

My need is to accept every language russian, chinese, ...

So how can i set UTF8 settings to accept all languages.

Thanks
Back to Top View jvinis's Profile Search for other posts by jvinis
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6094
Posted: 22 December 2008 at 3:08am | IP Logged Quote Igor

You should set UTF-8 charset in MailMessage.Charset property:

Code:
msg.Charset = "utf-8";


Regards,
Igor
Back to Top View Igor's Profile Search for other posts by Igor
 
jvinis
Newbie
Newbie


Joined: 20 May 2008
Online Status: Offline
Posts: 18
Posted: 22 December 2008 at 3:36am | IP Logged Quote jvinis

When i set msg.Charset = "utf-8"; the application is slowdown by 100000000%

Why?
Back to Top View jvinis's Profile Search for other posts by jvinis
 
jvinis
Newbie
Newbie


Joined: 20 May 2008
Online Status: Offline
Posts: 18
Posted: 22 December 2008 at 3:40am | IP Logged Quote jvinis

I create a message with subject and body:Test Ελληνικών 2

And the EML file contains:
Subject: =?Windows-1252?Q?Test_=3F=3F=3F=3F=3F=3F=3F=3F=3F_2?=
Importance: Normal
X-Priority: 3 (Normal)
From:
Date: Mon, 22 Dec 2008 03:29:12 -0800
X-Mailer: MailBee.NET 4.0.2.105
MIME-Version: 1.0
Content-Type: multipart/alternative;
     boundary="----=_NextPart_001_5 F74_E335B61C.7D9C17D6"


------=_NextPart_001_5F74_E335B61C.7D9C17D6
Content-Type: text/plain;
     charset="utf8"
Content-Transfer-Encoding: quoted-printable

Test ????????? 2
------=_NextPart_001_5F74_E335B61C.7D9C17D6
Content-Type: text/html;
     charset="utf8"
Content-Transfer-Encoding: quoted-printable

Test ????????? 2
------=_NextPart_001_5F74_E335B61C.7D9C17D6--
Back to Top View jvinis's Profile Search for other posts by jvinis
 
jvinis
Newbie
Newbie


Joined: 20 May 2008
Online Status: Offline
Posts: 18
Posted: 22 December 2008 at 4:02am | IP Logged Quote jvinis

I clear Temporary internet files and problems solved .....
Back to Top View jvinis's Profile Search for other posts by jvinis
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 22 December 2008 at 4:08am | IP Logged Quote Andrew

We've just used the following code:

Code:
MailMessage msg = new MailMessage();

msg.Charset = "UTF-8";

msg.Subject = "Test Ελληνικών 2";

msg.BodyHtmlText = "Test Ελληνικών 2";

msg.SaveMessage(@"D:\test_eml.eml");


And got the following message:

Code:
MIME-Version: 1.0
X-Mailer: MailBee.NET 4.0.2.117
Subject:  =?utf-8?Q?Test_=CE=95=CE=BB=CE=BB=CE=B7=CE=BD=CE=B9=CE=BA=CF =8E=CE=BD_2?=
Content-Type: multipart/alternative;
        boundary="----=_NextPart_000_59D2_9E19A2AE.0851C5F2"


------=_NextPart_000_59D2_9E19A2AE.0851C5F2
Content-Type: text/plain;
        charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Test =CE=95=CE=BB=CE=BB=CE=B7=CE=BD=CE=B9=CE=BA=CF=8E=CE=BD 2
------=_NextPart_000_59D2_9E19A2AE.0851C5F2
Content-Type: text/html;
        charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Test =CE=95=CE=BB=CE=BB=CE=B7=CE=BD=CE=B9=CE=BA=CF=8E=CE=BD 2
------=_NextPart_000_59D2_9E19A2AE.0851C5F2--


Try to update your MailBee.NET.dll to the latest version.

Quote:
When i set msg.Charset = "utf-8"; the application is slowdown by 100000000%


Could you please clarify what exactly slows down?

Best regards,
Andrew
Back to Top View Andrew's Profile Search for other posts by Andrew
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide