Changes between Initial Version and Version 2 of Ticket #4030
- Timestamp:
- Jan 20, 2011, 11:32:20 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #4030
- Property Keywords UTF-8 added; utf-8 removed
-
Ticket #4030 – Description
initial v2 1 1 I am no db expert, but I found that I had to change the following to get unicode characters to display and be entered correctly: 2 2 {{{ 3 3 mysql_con = MySQLdb.connect(host=_host, 4 4 user=_user, passwd=_password, db=_db, compress=1, 5 5 cursorclass=MySQLdb.cursors.DictCursor, use_unicode=1) 6 6 }}} 7 7 use_unicode=1 is the same as set names="utf-8", this ensures that the database data is retrieved in this format. I prob had to do this as a misconfiguration on our DB where everything is set to latin, even thougn german characters are used. 8 8