Arquivo JSON Com Caracteres Estranhos [python]

Poderiam me ajudar nesse problema? Faço uma requisição de uma API e me é retornado informações com caracteres estranho conforme abaixo.

"description":"Alinhamento Ana Let�cia grava��o ( Endo ) - ok"

Segue abaixo o script python da requisição.


url = "https://tradetechnology.teamwork.com/time_entries.json"

headers = {
    "Content-Type": "application/json;charset=UTF-8",
    "Authorization": "Bearer {token}"
    }

def funcao():
    time_entries = requests.get(url, headers = headers)
    arquivo_json = open('.\json\_teamwork_time_entries.json', 'w')
    arquivo_json.write(time_entries.text)
    
funcao()

Use encoding='utf8' dentro da função open(). Vai ficar assim:

arquivo_json = open('.\json\_teamwork_time_entries.json', 'w', encoding='utf-8')
Muito obrigado. Deu certo!

Acredito que o retorno do json está vindo com caracteres especiais, tipo "ç", "ã" e "í", então só teria que colocar como utf-8.