mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
- Should completly fix unicode problems for all search engines
This commit is contained in:
parent
a2e9210665
commit
9e46c6c047
7 changed files with 18 additions and 19 deletions
|
@ -54,6 +54,6 @@ def retrieve_url(url):
|
|||
ignore, charset = info['Content-Type'].split('charset=')
|
||||
except:
|
||||
pass
|
||||
dat = dat.decode(charset)
|
||||
dat = dat.decode(charset, 'replace')
|
||||
dat = htmlentitydecode(dat)
|
||||
return dat.encode('utf-8', 'replace')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue