Tagged Questions
2
votes
2answers
70 views
Python encoding for swedish charachters
I'm using scrapy to extract data from a web site. I'm saving the data to a mysql database using MysqlDB. The script works for english sites, but when I try it on a swedish site i get:
...
0
votes
2answers
78 views
mysql in python encoding
This post is the same with my question in MySQL in Python: UnicodeEncodeError: 'ascii' this is just to clear things up.
I am trying to save a string to a MySQL database but I get an error:
...
1
vote
1answer
50 views
MySQL-Python character encoding exception on db insert
I am getting the following Exception when trying to save a row to a db:
Unexpected error: (<type 'exceptions.UnicodeEncodeError'>, UnicodeEncodeError('latin-1', u"First 'A\u043a' Last", 7, 8, ...
0
votes
1answer
177 views
python encoding problem with mysqldb
I have troubles with encoding in python while using xlrd and mysqldb.
I am reading an excel file which contains Turkish characters in it.
When I print the value like that print ...
1
vote
1answer
443 views
Does the MySQLdb module in python returns utf8 encoding or unicode in this case?
Using MySQLdb I connect to a database where everything is stored in the utf8 encoding.
If I do
cursor.execute("SET NAMES utf8")
and fetch some data from the database by another statement. Does ...