I am trying to access unicode (Chinese, Japanese, etc) characters in python code from a Netezza database. For the connection, I am using the Netezza odbc driver and sqlalechmy, and a table in netezza which has an nvarchar type column which has chinese characters in it. While accessing that chinese character using python code, the output was ?? instead of actual data.
Table having two columns, one is with datatype id and other is with datatype nvarchar:
id(int) Data(nvarchar)
1 你好
2 你好
3 你好
Conection code:
connecting_string="DRIVER={NetezzaSQL};SERVER=hostname;PORT=5480;DATABASE=databaseName;UID=userNamw;PWD=password"
sqlparams = parse.quote_plus(connecting_string)
engine = create_engine(f"netezza+pyodbc:///?odbc_connect={sqlparams}")
netezzaConnection = engine.connect()