Re: 'ascii' codec can't encode character u'\u2013'

2005-09-30 Thread thomas Armstrong
Hi. Thank you both for your answers. Finally I changed my MySQL table to UTF-8 and changed the structure of the query (with '%s'). It works. Thank you very much. 2005/9/30, deelan <[EMAIL PROTECTED]>: > thomas Armstrong wrote: > (...) > > when try

'ascii' codec can't encode character u'\u2013'

2005-09-30 Thread thomas Armstrong
Hi Using Python 2.3.4 + Feedparser 3.3 (a library to parse XML documents) I'm trying to parse a UTF-8 document with special characters like acute-accent vowels: ... --- But I get this error message: --- UnicodeEncodeError: 'ascii' codec can't encode character u'\u2013' in posit

Re: /usr/lib/python2.3/site-packages/_mysql.so: undefined symbol: mysql_rollback

2005-09-21 Thread thomas Armstrong
Hi Skip. Thank you very much for your answer. If LDD: [EMAIL PROTECTED] /]# ldd /usr/lib/python2.3/site-packages/_mysql.so libmysqlclient.so.10 => /usr/lib/mysql/libmysqlclient.so.10 (0xf6fb3000) libcrypt.so.1 => /lib/libcrypt.so.1 (0xf6f84000) libnsl.so.1 => /lib/libnsl.so

/usr/lib/python2.3/site-packages/_mysql.so: undefined symbol: mysql_rollback

2005-09-16 Thread thomas Armstrong
Hello. Python 2.3.4 (#1, Feb 2 2005, 12:11:53) [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2 MySQL-python-1.2.0 I'm trying to execute this script: -- #!/usr/bin/python import MySQLdb conn = MySQLdb.connect (host = "localhost", user = "root", passwd = "", db = "tes