The plugins system does not support unicode
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qBittorrent |
Fix Released
|
High
|
Christophe Dumez |
Bug Description
Thank you for a nice program! qBittorrent becomes popular in Russia. And I've decided to write a search plugin for a russian torrent tracker. And I almost did that! But there is a problem with encoding.
It seems like your program does not expect unicode from search plugins. It produces a Python exception when I pass unicode to prettyPrinter():
exceptions.
encoding = 'ascii'
Of course there is no errors without python debugger, just empty search result. This is very confusing, because the search script works well with nova2.py.
It would be great if the calling script set the correct default encoding (utf-8 I guess, or the current encodig that you use). May be this example will be helpfull
http://
The second half of the problem is that it seems your program reads the data returned by the python script as 'ascii' text. So even if I manually do value.encode(
Could you provide me with your script please? This way I can run some tests of my own and make sure I fix it right.