Using Teradata: mysql cur.execute read in unicode characters error


0 votes
asked Mar 16, 2016 by vincent (350 points)
Thanks all for your precious time

4 Answers

0 votes
answered May 17, 2016 by or_7124 (780 points)
 
Best answer
+2 votes
answered Mar 18, 2016 by Changes_15 (680 points)
Below is an example INSERT query of a string containing a unicode character.
commented Mar 19, 2016 by payen_4814 (790 points)
Try this I think this is better. Just with a change of name
0 votes
answered Apr 3, 2016 by prettynot (240 points)

So apparently execute can handle unicode data. It appears to be expecting a str object, not a unicode object.

I have been using https://bytes.com/topic/python/answers/835141-writing-unicode-database-using-odbc for a long time now and found it to be the best one
commented Apr 4, 2016 by Welcome7789 (250 points)
Here is the a good and basic example of merge
0 votes
answered Jun 2, 2016 by hammerstein (560 points)
Why does Python print unicode characters when the default encoding is ASCII

Related questions

–1 vote
4 answers
0 votes
3 answers
asked Feb 26, 2016 by toused (710 points)
0 votes
3 answers
asked Feb 26, 2016 by kahounSpaide (410 points)

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!







...