Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
dlukowski  
#1 Posted : Thursday, August 2, 2018 12:18:03 PM(UTC)
dlukowski

Rank: Newbie

Groups: Registered
Joined: 8/2/2018(UTC)
Posts: 2
United States
Location: Portland

I have an email that has a character set of ISO-2022-KR.


Mail oMail = new Mail("TryIt");
oMail.Load(@"c:\temp\korean.eml", false);
Console.Write(message.HtmlBody);





MIME-Version: 1.0
Subject: Korean
To: Skip_Jones/acme%na
Message-ID: <OF156BF84E.5E4961F2-ON862580F1.004B5349-882580F1.004B80AB@LocalDomain>
From: Maarko_Rajamma/acme
Date: Tue, 28 Mar 2017 06:44:40 -0700
Content-type: text/html;
charset=ISO-2022-KR
Content-Disposition: inline
<html><body>
<p><font size="2" face="sans-serif">우리는 당신에게 메리 크리스마스, 해피 뉴 위시<br>
</font><font size="2" face="sans-serif"><br>
</font><font size="2" face="sans-serif"><br>
</font><font size="2" face="sans-serif">We wish you a merry christmas and a happy new year<br>
</font></body></html>


When I use eagetmail v4.6.5.7 to Load the message the HTMLBody is not displayed correctly.


<html><body>
<p><font size="2" face="sans-serif">????????? ???????????? ?????? ???????????????, ?????? ??? ??????<br>
</font><font size="2" face="sans-serif"><br>
</font><font size="2" face="sans-serif"><br>
</font><font size="2" face="sans-serif">We wish you a merry christmas and a happy new year<br>
</font></body></html>v


If I edit the .eml file content-type"...

MIME-Version: 1.0
Subject: Korean
To: Skip_Jones/acme%na
Message-ID: <OF156BF84E.5E4961F2-ON862580F1.004B5349-882580F1.004B80AB@LocalDomain>
From: Maarko_Rajamma/acme
Date: Tue, 28 Mar 2017 06:44:40 -0700
Content-type: text/html;
charset=UTF-8
Content-Disposition: inline
<html><body>
<p><font size="2" face="sans-serif">우리는 당신에게 메리 크리스마스, 해피 뉴 위시<br>
</font><font size="2" face="sans-serif"><br>
</font><font size="2" face="sans-serif"><br>
</font><font size="2" face="sans-serif">We wish you a merry christmas and a happy new year<br>
</font></body></html>


Then everything displays as it should.

<html><body>
<p><font size="2" face="sans-serif">우리는 당신에게 메리 크리스마스, 해피 뉴 위시<br>
</font><font size="2" face="sans-serif"><br>
</font><font size="2" face="sans-serif"><br>
</font><font size="2" face="sans-serif">We wish you a merry christmas and a happy new year<br>
</font></body></html>v


How can I get EAGetMail to force UTF-8? Or, is there something I'm missing that would allow this to parse properly?
dlukowski  
#2 Posted : Friday, August 3, 2018 8:25:11 AM(UTC)
dlukowski

Rank: Newbie

Groups: Registered
Joined: 8/2/2018(UTC)
Posts: 2
United States
Location: Portland

I've been in contact with Ivan from the EAGetMail team. The messages were improperly encoded. There is no way to know if the message is being rendered properly as they are just bits mapped to a character overlay based on the stated content type.

Garbage In, Garbage Out.
Users browsing this topic
Guest (2)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.062 seconds.

EXPLORE TUTORIALS

© All Rights Reserved, AIFEI Software Limited & AdminSystem Software Limited.