Decode E-mail Chinese Characters English Outlook iPhone Mojibake

If you get an e-mail with Chinese characters instead of Latin characters see how to decode below.

Simplified Example


import sys

print unicode(
    sys.argv[1], 'utf-8').encode('utf-16be')")
$ python
    > content.html
$ google-chrome content.html

HTML Output

$ python
<html dir="ltr"><head>
    content="text/html; chars...

Python Version

$ python --version
Python 2.7.16

Subscribe to my mailing list and get a free email course

* indicates required


Updated on 2019 Apr 23.

DISCLAIMER: This is not professional advice. The ideas and opinions presented here are my own, not necessarily those of my employer.