Use cx_oracle python3, access oracle database and environmental GBK code is Most of the data is no problem, there are a few data is a problem left over by history, address what had the code inside, So when fetchone complains, what's the solution? Similar code is no problem, when python2 migrated to that there was such a big pit in python3 is really quite speechless,
CodePudding user response:
See if what's error message, quotes or \ characters, if it is, can consider to select the address field, use the replace directly eliminate the two symbols,
In addition, can consider to do the data cleaning, the historical data to make a deal with, total and