login about faq

Hi guys, I'm having some issues when getting an email without the charset specified in the content-type header. The charset is being predicted as "charset="iso-8859-1"" when, for this particular email (containing german characters), it should be utf-8.

This happens by using CkEamil::getMime() (I really need to use this method to later process)

-Is there a way to get the raw charset ? (the one without the predicted charset) -can we distingwish if it was predicted ?

Thx !

asked Jul 19 at 17:00

Sarten's gravatar image

Sarten
1


Without seeing actual data (the MIME) that causes the problem, it's impossible to know what can be done..

link

answered Jul 20 at 10:55

chilkat's gravatar image

chilkat ♦♦
11.8k316358421

Ok, first of all thanks for answer

This is the original as I see it on GMail by "seeing original option". (No charset) The actual body text is some german characters: "äöü € ÄÖÜ German ñÑ Áé£æ"

Return-Path: <velocityseba@gmail.com>
Received: from VPUY-SGOMEZ.bellevue.velocitypartners.net (r201-217-135-132.ir-static.anteldata.net.uy. [201.217.135.132])
        by smtp.gmail.com with ESMTPSA id n16sm591287vkd.2.2016.07.20.10.47.28
        for <velocityseba@gmail.com>
        (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
        Wed, 20 Jul 2016 10:47:28 -0700 (PDT)
Date: Wed, 20 Jul 2016 14:47:14 -0300
From: FrontRange Solutions Emplo <velocityseba@gmail.com>
Subject: ��� � ��� German �� ����
To: Batman <velocityseba@gmail.com>
Message-ID: <SjhVUVpLQSM+NVdXIFc8MTMxMjgwNTY4MQ@VPUY-SGOMEZ>
Mime-Version: 1.0
Organization: VP
X-Mailer: GoldMine [2013.1.0.210]
X-GM-LinkAccnt: 416C49836BA1B373699993A2416B71A93D656577B18493A2
Content-Type: text/plain
Content-Transfer-Encoding: 8bit

��� � ��� German �� ����

And this is the Mime I get from chilkat (Charset predicted as iso-8859-1)

Return-Path: <velocityseba@gmail.com>
Received: from VPUY-SGOMEZ.bellevue.velocitypartners.net (r201-217-135-132.ir-static.anteldata.net.uy. [201.217.135.132])       by smtp.gmail.com with ESMTPSA id n16sm591287vkd.2.2016.07.20.10.47.28       for <velocityseba@gmail.com>       (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
           Wed, 20 Jul 2016 10:47:28 -0700 (PDT)
Date: Wed, 20 Jul 2016 14:47:14 -0300
From: FrontRange Solutions Emplo <velocityseba@gmail.com>
Subject: =?windows-1252?Q?=E4=F6=FC_=80_=C4=D6=DC_German_=F1=D1_=C1=E9=A3=E6?=
To: Batman <velocityseba@gmail.com>
Message-ID: <SjhVUVpLQSM+NVdXIFc8MTMxMjgwNTY4MQ@VPUY-SGOMEZ>
Mime-Version: 1.0
Organization: VP
X-Mailer: GoldMine [2013.1.0.210]
X-GM-LinkAccnt: 416C49836BA1B373699993A2416B71A93D656577B18493A2
Content-Transfer-Encoding: 8bit
ckx-imap-uid: 12044
ckx-imap-isUid: YES
ckx-imap-seen: NO
ckx-imap-answered: NO
ckx-imap-deleted: NO
ckx-imap-flagged: NO
ckx-imap-draft: NO
Content-Type: text/plain;
     charset="iso-8859-1"

äöü € ÄÖÜ German ñÑ Áé£æ
link

answered Jul 20 at 14:07

Sarten's gravatar image

Sarten
1

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×29
×27
×4

Asked: Jul 19 at 17:00

Seen: 219 times

Last updated: Jul 20 at 14:07

powered by OSQA