[mythtv-commits] Ticket #4917: ofdb.py: charset issues
MythTV
mythtv at cvs.mythtv.org
Mon Mar 10 20:32:54 UTC 2008
#4917: ofdb.py: charset issues
------------------------------+---------------------------------------------
Reporter: laga at laga.ath.cx | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: mythtv | Version: unknown
Severity: medium | Mlocked: 0
------------------------------+---------------------------------------------
ofdb.py has some charset issues.
When searching for a movie ID using ofdb.py -M, the query is sent encoded
as UTF8 and the server does not return any hits. It seems it expects
iso-8859-15 instead.
I tried to recode the query to iso-8859-15 inside ofdb.py, but urllib
would complain because it was expecting ASCII. I'm not sure where to go
from here.
The movie meta data returned by ofdb.py doesn't look good in the video
manager either. It looks like UTF-8 being displayed as latin-1, eg you get
two weird characters instead of one umlaut.The same happens in the
console, but it goes away if I comment out
{{{
content = unicode(content, charset)
}}}
in line 105.
Here's a simple test case:
ofdb.py -M 'identität'
My terminal and my environment are both set to UTF-8.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/4917>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list