我正在尝试读取sql数据库并在tkinter标签上显示一些信息,但是字符'ã'被显示为'?O'。如何解决这个问题?
遵循以下阅读代码:
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)
尝试在行尾添加'
:database=xxx,