title: Converting a dictionary to json having persian characters
body: <p>Here is some code of mine, I'm trying to convert a dictionary to json having Persian characters but I get question marks instead of characters. My dictionary looks like this: </p>
  
  <pre><code>bycommunity("0": [{"60357": "این یک پیام است"}] )
  
  with open('data.json', 'wb') as f:
  f.write(json.dumps(bycommunity).encode("utf-8"))
  </code></pre>
  
  <p>the result is : </p>
  
  <pre><code>{"0": [{"60357": "?????? ??? ??? ???? ???????? ??????"}]} 
  </code></pre>