Changes between Initial Version and Version 1 of Ticket #5617, comment 3
- Timestamp:
- Mar 27, 2017, 9:46:00 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #5617, comment 3
initial v1 1 1 I too experience this problem, with the Mantis database's table all encoded using the utf8_general_ci encoding. I've tried to just remove the calls to .encode('utf-8'), but this results in another error altogether: 2 2 3 {{{ 3 4 inserting ticket 91 -- "speciale teken φ als ? afgedrukt" 4 5 Traceback (most recent call last): … … 17 18 sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (l 18 19 ike text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings. 20 }}} 19 21 20 22 This occurs on special characters like ë and á and ì. Is there any quick fix to be done in the script to fix this? I'm no character encoding expert, and I've already spent far too much time on this problem.