Skip to content

Instantly share code, notes, and snippets.

@victorouttes
Created August 27, 2019 20:10
Show Gist options
  • Save victorouttes/c2b972e3ab4daaca221c9fa1f889deef to your computer and use it in GitHub Desktop.
Save victorouttes/c2b972e3ab4daaca221c9fa1f889deef to your computer and use it in GitHub Desktop.
Problema de encoding Oracle no Python

Problema de encoding lendo do banco Oracle no Python

As vezes, mesmo setando o encoding correto na string de conexão, algumas tabelas Oracle vem com problemas. Para resolver isto, basta adicionar a seguinte linha no início do seu script:

os.environ["NLS_LANG"] = ".AL32UTF8"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment