Python Forum

Full Version: Python and MYSQL Resultset
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi - I am using Python to get results from mysql database.
The results displayed shows quotes and a u concatenated to the results? Not sure why?

Result:(1, u'userone', u'password1')
(Apr-01-2021, 12:12 PM)kashcode Wrote: [ -> ]Read this thread https://stackoverflow.com/questions/3920...ql/3920490


Thank you. It did remove the u from the result set. After adding the use_unicode=True ,charset="utf8" to the db connection string.

Now, I still have single quotes left in the result set?