Chinese letters showing up when replying to email in Outlook
Solution 1:
For some reason, Outlook is misinterpreting the message body as UTF-16-LE while it is in fact regular ASCII-based text. (The given sample is purely ASCII, the whole message might be UTF-8.)
misdecoded: 䐼 噉 氠 湡 㵧
(Unicode): U+443C U+5649 U+6C20 U+6E61 U+3D67
raw bytes: 3C 44 49 56 20 6c 61 6e 67 3d
UTF-8: < D I V ␣ l a n g =
The given sample decodes as:
<DIV lang=sv class=OutlookMessageHeader align="left" DIR="LTR"> <FONT Face="C" Size=2>-<BR> <B>F</B> F <BR> <B>S</B> d<BR> <B>T</B> V<BR> <BCHAR</B> J<BR> </FONT> </DIV><DIV></DIV>
I don't know why Outlook uses the wrong encoding. The sender might have specified it wrongly in the Content-Type header (see message's "Properties" window); it could be that the message was prepared by an auto-mailer which confused UTF-8 and UTF-16. If Outlook and/or MS Exchange are involved, it becomes twice as difficult to figure it out.
Solution 2:
Based on grawity's answer I checked the header settings. This solution worked for me:
- Go to File -> Advanced and look up the International Options header.
- Uncheck "Use English for message headers on replies and forwards and for forward notifications."
- Restart Outlook
- Test reply
I work on windows 10, Outlook Version 1902 (Office 365).
Your experience may differ.
Solution 3:
You can use the iconv
command to convert these chinese characters back to text:
iconv -f UTF-8 -t UTF-16LE input.txt
There is an online iconv
you can use to fix the text here.
Just use UTF-8 as the input and UTF-16LE as the output.