Jupyter Notebook: How to output chinese?
<p>The coloumn ['douban_info'] in my dataset is info about movies in Chinese which stored in JSON, so when I do <code>df['douban_info'][0]</code>, it returns</p>

<p><a href="http://i.stack.imgur.com/6WCkU.png" rel="nofollow"><img src="http://i.stack.imgur.com/6WCkU.png" alt="enter image description here"></a></p>

<p>The chinese are all changed into things like <code>\u7834\u6653\u8005</code>, which I can't read with ease. Is it possible to make python to turn them into the originall chinese when outputing?</p>

<p>I'm on Python 2.7.</p>

<p>Call <code>json.dump</code> or <code>json.dumps</code> with  <code>ensure_ascii=False</code> options, then you will get raw utf-8 encoded string.</p>

<p>referenced by <a href="https://docs.python.org/2/library/json.html" rel="nofollow">https://docs.python.org/2/library/json.html</a></p>

<p><code>json.dump(obj, fp, skipkeys=False, **ensure_ascii=True**, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, encoding="utf-8", default=None, sort_keys=False, **kw)</code>Â¶</p>

<p>you can try </p>

<p><code>df['douban_info'][0].to_json(ensure_ascii=False)</code></p>

<p>to get attribute values displayed with chinese character.</p>

python unicode jupyter-notebook