title: Facebook JSON badly encoded
body: <p>I downloaded my Facebook messenger data (in your Facebook account, go to <em>settings,</em> then to <em>Your Facebook information</em>, then <em>Download your information</em>, then create a file with at least the <em>Messages</em> box checked) to do some cool statistics</p>
  
  <p>However there is a small problem with encoding. I'm not sure, but it looks like Facebook used bad encoding for this data. When I open it with text editor I see something like this: <code>Rados\u00c5\u0082aw</code>. When I try to open it with python (UTF-8) I get <code>RadosÅ\x82aw</code>. However I should get: <code>Radosław</code>.</p>
  
  <p>My python script:</p>
  
  <pre><code>text = open(os.path.join(subdir, file), encoding='utf-8')
  conversations.append(json.load(text))
  </code></pre>
  
  <p>I tried a few most common encodings. Example data is:</p>
  
  <pre><code>{
    "sender_name": "Rados\u00c5\u0082aw",
    "timestamp": 1524558089,
    "content": "No to trzeba ostatnie treningi zrobi\u00c4\u0087 xD",
    "type": "Generic"
  }
  </code></pre>