Comment 12 for bug 491149

Revision history for this message
_tus_ (guillaume-artus) wrote :

Performed some check on version 440
still got an issue on SBDP08
with the french title:
(ProgrammingError) You must not use 8-bit bytestrings unless you use a text_factory that can interpret 8-bit bytestrings (like text_factory = str). It is highly recommended that you instead just switch your application to Unicode strings. u'INSERT INTO juego (idgame, title, size, "idParticion") VALUES (?, ?, ?, ?)' [u'SBDP08', 'Resident Evil:\xa0The Darkside Chronicles', 3.7304689999999998, 1]

No problem with the UK title :'Resident Evil: The Darkside Chronicles'
The issue is that even guessBytesCharset does not handle the \xa0 character and return None as the found Charset (which blown up the next decode command)

Should we decide to use some default name when the guessBytesCharset return None and to inform the user that the read name is not correct for wiithon (in the same time, checking the charset of the wiitdb title field before written it on the wbfs could be a smart idea, possibly with a warning message asking for a new title)