title: Trying to write a symbol to a file for python 3.6.0 but I'm getting errors
body: <p>I'm trying to add the symbol ฿ to a text file in Python 3.6.0 but I keep getting the error:</p>
  
  <pre><code>UnicodeEncodeError: 'charmap' codec can't encode character '\u0e3f'
      in position 0: character maps to &lt;undefined&gt;
  </code></pre>
  
  <p>I've also tried changing the <code>f.write('฿')</code> to <code>f.write('฿'.encode("\u0e3f"))</code> but I then receive the error:</p>
  
  <pre><code>LookupError: unknown encoding: ฿
  </code></pre>
  
  <p>I've attempted a few different ways but I'm still getting errors.  Is there something that I'm missing perhaps? Any tips/answers would be greatly appreciated!</p>