I need to connect to a Teradata.table which has encoding = "Latin-OA", using teradatasql in python.
I tried to pass encoding as a parameter but I don't think it is the correct syntax:
with teradatasql.connect(host='xx.xx.xx', user='xyz',
password='xyz', charset='Latin-OA') as connect:
query = 'select * from db.table'
df = pd.read_sql(query, connect)
print(df)
What is the correct syntax to pass encoding here?
The teradatasql Python driver does not offer a charset=
connection parameter.
The teradatasql Python driver always uses the UTF8 session character set.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.