Opened 14 years ago
Closed 14 years ago
Last modified 14 years ago
#7283 closed defect (invalid)
ttvdb.py fails non utf-8 chars?
Reported by: | shade73a | Owned by: | Anduin Withers |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | Plugin - MythVideo | Version: | head |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
2009-10-10 12:38:26.938 Video Search: Executing "'/usr/local/share/mythtv/mythvideo/scripts/ttvdb.py' -N Det var en gång - tidernas äventyr " 2009-10-10 12:38:27.334 Traceback (most recent call last):
File "/usr/local/share/mythtv/mythvideo/scripts/ttvdb.py", line 1243, in <module>
main()
File "/usr/local/share/mythtv/mythvideo/scripts/ttvdb.py", line 920, in main
series_season_ep[index] = unicode(series_season_ep[index], 'utf8')
File "/usr/lib64/python2.6/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError?: 'utf8' codec can't decode bytes in position 12-14: invalid data
Although it returns nothing, your query works fine here:
robert@Holmes:/$ /usr/share/mythtv/mythvideo/scripts/ttvdb.py -N "Det var en gång" "tidernas äventyr" ! Warning: Series (Det var en gång) not found robert@Holmes:/$
If you want to run queries on UTF-8 characters, your terminal must be set up with a UTF-8 locale. In my case:
export LANG="en_US.UTF-8"