0

I'm trying to read a SQL database and show some information on a tkinter label, but the character 'ã' is being displayed as '?'. How to fix this?

This is the code I used:

from sqlalchemy import create_engine
oracle_connection_string = 'oracle+cx_oracle://{username}:{password}@{hostname}:{port}/{database}'
engine = create_engine(
oracle_connection_string.format(
    username='xxx',
                    password='xxx',
                    hostname='xxx',
                    port='xxx',
                    database='xxx',
                    )
                )
        string_find_table = """ SQL View """
data = pd.read_sql(string_find_table, engine)

Error

1 Answer 1

1

This is an encoding error, check this post: UnicodeDecodeError with pandas.read_sql

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.