UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 13: character maps to <undefined>
I am trying to export a query to a .csv file, but I am having some issues. Here is the code:

import pandas as pd
import cx_Oracle as cx_Oracle

print("Efetuando login...")
dsn_tns = cx_Oracle.makedsn(r'bdproddr-exad.pitagoras.apollo.br','1521', service_name='bdprodexa')
conn = cx_Oracle.connect(user=r'UserName',password = 'xxxx',dsn=dsn_tns)
print('Usuário logado.')

c = conn.cursor()

print("A extração esta sendo feita, por favor aguardar...")

try:
    query = ''' Here goes the SQL code '''
df2 = pd.read_sql(con = conn, sql = query)
finally:
    conn.close()

df2.head ()
print ('Exportando dados para arquivo CSV...')
df2.to_csv(r'Z:\1 - EQUIPE_GPA\BASES_AEDU_DM_FAMA\Extração_Diaria\ExtracaoBaseDiaria_DM_AEDU_Pais_Filhos.csv', encoding = 'utf-16')

When I try to run I receive the following error:
**Traceback (most recent call last):
  File "C:\Users\gilmar.melo\OneDrive - EDITORA E DISTRIBUIDORA EDUCACIONAL S A\Python\Consultas\ExtracaoBaseDiaria_DM_AEDU_Pais_Filhos.py", line 82, in <module>
    df2 = pd.read_sql(con = conn, sql = query)
  File "C:\Users\gilmar.melo\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\io\sql.py", line 404, in read_sql
    return pandas_sql.read_query(
  File "C:\Users\gilmar.melo\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\io\sql.py", line 1658, in read_query
    data = self._fetchall_as_list(cursor)
  File "C:\Users\gilmar.melo\AppData\Local\Programs\Python\Python38-32\lib\site-packages\pandas\io\sql.py", line 1671, in _fetchall_as_list
    result = cur.fetchall()
  File "C:\Users\gilmar.melo\AppData\Local\Programs\Python\Python38-32\lib\encodings\cp1252.py", line 15, in decode
    return codecs.charmap_decode(input,errors,decoding_table)
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 13: character maps to <undefined>**

I tried a similar code for another query and worked, I only have problem with this particularly.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
