Changes between Initial Version and Version 1 of Ticket #5617, comment 3


Ignore:
Timestamp:
Mar 27, 2017, 9:46:00 PM (7 years ago)
Author:
Ryan J Ollos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5617, comment 3

    initial v1  
    11I 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:
    22
     3{{{
    34inserting ticket 91 -- "speciale teken φ als ? afgedrukt"
    45Traceback (most recent call last):
     
    1718sqlite3.ProgrammingError: You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (l
    1819ike text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings.
     20}}}
    1921
    2022This 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.