python: After connecting the console to print Chinese Oracle database? ?

Print query results to display Chinese? ? ?

[('72H FCR', '2.0'), ('?????', '8.0')]

E: \ Python35 \ Lib \ site-packages in the new file:

sitecustomize.py

import os
os.environ['NLS_LANG'] = 'SIMPLIFIED CHINESE_CHINA.UTF8'

 

Guess you like

Origin www.cnblogs.com/gcgc/p/11526420.html