title: Portuguese encoding Ã£, Ãª, Ã§, Ã¡
body: <p>I have this code:</p>
  
  <pre><code>with open('dataset.csv', "w", encoding="utf-8") as myfile:
      print(datafromAPI.decode("utf-8"),file=myfile)
  </code></pre>
  
  <p>which saves .csv file after decoding dataset from a data server through an API but the encoding is not displaying proper character. For instance, <strong>ã shows Ã£, ê shows Ãª, ç shows Ã§, á shows Ã¡</strong>, etc
  I have tried to change starting from encoding of notepad++ and within my python code using <strong>utf-8, latin-1, ISO 8859-1</strong>, etc with no effect.</p>