Mail encoding of text

hi

I have a problem with reading some letters using application Mail.

On my iphone the message which I had received has the correct coding, but when I use macbook with Yosemite in application Mail the coding of the letter is incorrect and I can't read it. The text language is russian.

I try to find preferences of encoding in application but didn't find anything about it.

I try to google the information about coding of incoming letters, but It also gave no result.

Did somebody have the same problem?

Thanks a lot in advance.

User uploaded file

MacBook Pro with Retina display, OS X Yosemite (10.10.2), Mail application

Posted on Mar 31, 2015 10:00 AM

Reply
24 replies

Jul 20, 2015 4:05 AM in response to krylovdx

I have the same issue. Upgrading to El Capitan didn't solve the problem.

Bug requests in Feedback Assistant tool: for Yosemite #523042 (28 Feb 2015), for El Capitan Public Beta #966229 (20 Jul 2015)


And it's not a problem with sender's encoding.


There are the steps to reproduce the problem:


Environment:

Language&Region

Preferred Language

- English - Primary

- Russian

Region

- Russia - Russian

List sort order

- Russian

Keyboard

Text

- Correct spelling automatically = true

- Spelling = Automatic by Language

- Use smart quotes and dashes = true


Use case scenario:

1. Mail.app is running, 1 exchange account is active (exchange 2010 server)

2. Somebody sends an email in Russian using MS Outlook 2010 or 2013 that have a certain symbol in text that can be inserted in email’s text field in Outlook like this:

2.1 insert > symbol

2.2 type «space» button

2.3 Outlook autocorrection transforms the > symbol into the symbol that looks like the UNICODE sysmbol U+27A2 (usually people do so to show the quoted text)

3. Received email in Mail.app can’t be read because of bad encoding interpretation. All text looks like:

ŽąŽāŽÝŽåŽéŽÚŽÝŽāŽãŽî ŽáŽāŽÝŽåŽéŽÚŽäŽî ŽāŽäŽÓŽÖŽä ŽßŽŅ ŽáŽāŽâŽāŽã?

instead of

Получилось получить ответ на порос?


If this email is forwarded using Mail.app to somebody with Outlook 2010/2013 on Windows, received email on other side will have the same look as at Mail.app like this:

ŽąŽāŽÝŽåŽéŽÚŽÝŽāŽãŽî ŽáŽāŽÝŽåŽéŽÚŽäŽî ŽāŽäŽÓŽÖŽä ŽßŽŅ ŽáŽāŽâŽāŽã?


And YES, somehow encoding in RAW message switches from UTF-8 (default for Mail.app) or KOI8-R (default for Outlook in Windows) to Korean charset="ks_c_5601-1987".


It seems to me it's a bug in Mail.app when communicating with Outlook as Exchange client.

Jul 20, 2015 4:14 AM in response to 91koff

91koff wrote:


And YES, somehow encoding in RAW message switches from UTF-8 (default for Mail.app) or KOI8-R (default for Outlook in Windows) to Korean charset="ks_c_5601-1987".


When you use View > Message > Raw Source in Mail on the original incoming, does it already have the junk Korean encoding? If so, then it must be Exchange that is messing it up. Mail cannot change the raw source of an incoming message.

Jul 20, 2015 4:51 AM in response to Tom Gewecke

The sequence is the following:


Sender (A) and recipient (B) use same Exchange server but on Outlook Win clients.

I use Mail.app as Exchange client (C).


1. A creates original message in Outlook Windows sends to B, C in copy:

Content-Type: text/plain; charset="koi8-r"

Content-Transfer-Encoding: quoted-printable


2. B replies using "> " symbol, C in copy.


3. C (me) sees unreadable characters and korean encoding in RAW message in OS X Mail.app (fact one).

C (me) sees Readable characters in Mail.app in iOS (fact two), can't get encoding info.

C (me) sees readable characters in Outlook Win running in VM on the same Exchange account with korean encoding (fact three).


You are right, looks like Exchange breaks the encoding.

Jul 22, 2015 12:38 AM in response to krylovdx

Finally


It looks like the bug is not in Mail.app or Exchange Server but in Outlook client of the sender.


Found these articles:

http://btsc.webapps.blackberry.com/btsc/viewdocument.do;jsessionid=354D19BC6CF7D 3AD9B2CF6D4516A26D8?externalId=KB19676&sliceId=1&cmd=displayKC&docType=kc&noCoun t=true&ViewedDocsListHelper=com.kanisa.apps.common.BaseViewedDocsListHelperImpl

and

https://support.tigertech.net/email-charset


Solutions are:

1. Fix Outlook bug (actually two bugs: do not change charset to Korean and do not ignore charset header in messages displaying them). Best way.

2. Try to live with Outlook bug and implement in other clients (like Mail.app) workaround to show message content ignoring charset header (to be like Outlook). Bad way.

3. Workaround is to ask sender to change his or her default Outlook settings to switch default encoding of outgoing messages strictly to UTF-8.

Mar 11, 2016 1:24 AM in response to 91koff

Same problem for me on El Capitan, but user sent mail w/o Exchange. And I received e-mail in Simplified Chinese instead of Russian.

Content-Type: text/plain; charset="GB2312"

Content-Transfer-Encoding: base64


But for me it is much more convenient option to have ability to change encoding to whatever I want on my side (e.g. Message -> Encoding in Mail.app), comparing to the option - ask all buggy Outlook owners to reconfigure their clients. Or even wait for MS to fix Outlook :-)

Mar 11, 2016 1:57 AM in response to Mihail Testov

There is a workaround to read mail content, but it is a bit user unfriendly. Might be useful to create automator action.


1. Copy base64 encoded text blocks from mail source and paste in text file with name mail.b64. The blocks of characters after

Content-Type: text/plain; charset="GB2312"

Content-Transfer-Encoding: base64

Should look like:

SGVsbG8gd29ybGQgSGVsbG8gd29ybGQgSGVsbG8gd29ybGQgSGVsbG8gd29y

bGQgSGVsbG8gd29ybGQgSGVsbG8gd29ybGQgSGVsbG8gd29ybGQKCtCS0YHQ

tdC8INC/0YDQuNCy0LXRgiDQktGB0LXQvCDQv9GA0LjQstC10YIg0JLRgdC1

0Lwg0L/RgNC40LLQtdGCINCS0YHQtdC8INC/0YDQuNCy0LXRgiDQktGB0LXQ

vCDQv9GA0LjQstC10YIg0JLRgdC10Lwg0L/RgNC40LLQtdGCINCS0YHQtdC8

INC/0YDQuNCy0LXRggoKSGVsbG8gd29ybGQgSGVsbG8gd29ybGQgSGVsbG8g

d29ybGQgSGVsbG8gd29ybGQgSGVsbG8gd29ybGQgSGVsbG8gd29ybGQgSGVs

bG8gd29ybGQKCtCS0YHQtdC8INC/0YDQuNCy0LXRgiDQktGB0LXQvCDQv9GA

0LjQstC10YIg0JLRgdC10Lwg0L/RgNC40LLQtdGCINCS0YHQtdC8INC/0YDQ

uNCy0LXRgiDQktGB0LXQvCDQv9GA0LjQstC10YIg0JLRgdC10Lwg0L/RgNC4

0LLQtdGCINCS0YHQtdC8INC/0YDQuNCy0LXRggoKSGVsbG8gd29ybGQgSGVs

bG8gd29ybGQgSGVsbG8gd29ybGQgSGVsbG8gd29ybGQgSGVsbG8gd29ybGQg

SGVsbG8gd29ybGQgSGVsbG8gd29ybGQKCtCS0YHQtdC8INC/0YDQuNCy0LXR

giDQktGB0LXQvCDQv9GA0LjQstC10YIg0JLRgdC10Lwg0L/RgNC40LLQtdGC

INCS0YHQtdC8INC/0YDQuNCy0LXRgiDQktGB0LXQvCDQv9GA0LjQstC10YIg

0JLRgdC10Lwg0L/RgNC40LLQtdGCINCS0YHQtdC8INC/0YDQuNCy0LXRggoK

SGVsbG8gd29ybGQgSGVsbG8gd29ybGQgSGVsbG8gd29ybGQgSGVsbG8gd29y

bGQgSGVsbG8gd29ybGQgSGVsbG8gd29ybGQgSGVsbG8gd29ybGQKCtCS0YHQ

tdC8INC/0YDQuNCy0LXRgiDQktGB0LXQvCDQv9GA0LjQstC10YIg0JLRgdC1

0Lwg0L/RgNC40LLQtdGCINCS0YHQtdC8INC/0YDQuNCy0LXRgiDQktGB0LXQ

vCDQv9GA0LjQstC10YIg0JLRgdC10Lwg0L/RgNC40LLQtdGCINCS0YHQtdC8

INC/0YDQuNCy0LXRggoKSGVsbG8gd29ybGQgSGVsbG8gd29ybGQgSGVsbG8g

d29ybGQgSGVsbG8gd29ybGQgSGVsbG8gd29ybGQgSGVsbG8gd29ybGQgSGVs

bG8gd29ybGQKCtCS0YHQtdC8INC/0YDQuNCy0LXRgiDQktGB0LXQvCDQv9GA

0LjQstC10YIg0JLRgdC10Lwg0L/RgNC40LLQtdGCINCS0YHQtdC8INC/0YDQ

uNCy0LXRgiDQktGB0LXQvCDQv9GA0LjQstC10YIg0JLRgdC10Lwg0L/RgNC4

0LLQtdGCINCS0YHQtdC8INC/0YDQuNCy0LXRggo=


2. Use Terminal.app:

base64 -D -i <path_to>/mail.b64 -o mail.badcoding

3. In the same Terminal window:

iconv -f GB2312 -t utf8 <mail.badcoding


If charset you are having trouble with is ks_c_5601-1987, change last command to

iconv -f KS_C_5601-1987 -t utf8 <mail.badcoding

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Mail encoding of text

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.