[mythtv-commits] Ticket #5005: burning fail with UnicodeEncodeError on non ascii titles
MythTV
mythtv at cvs.mythtv.org
Thu Mar 20 06:33:50 UTC 2008
#5005: burning fail with UnicodeEncodeError on non ascii titles
-------------------------------+--------------------------------------------
Reporter: fsc at webevasion.be | Owner: paulh
Type: patch | Status: new
Priority: minor | Milestone: unknown
Component: mytharchive | Version: 0.21-fixes
Severity: medium | Mlocked: 0
-------------------------------+--------------------------------------------
Hi,
As said on Mythbuntu
forum[http://ubuntuforums.org/showthread.php?t=729072], i upgraded to
mythtv 0.21 on march 11 (Mythbuntu 7.10 proposed update). Since then, i
couldn"t burn DVD with mytharchive if an european accent appears in the
title (or description?).with en error like
---
File "/usr/share/mythtv/mytharchive/scripts/mythburn.py ", line 5400 in
paiun processJob(job), [...] line 5196 in processJob BurnDVDISO(title)
[...] line 2587 in BurnDVDISO write(command) [...] line 242 in write
sys.stdout.write(text+"\n")
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe0' in
position 61: ordinal not in range(12
---
It's not a cut-and-paste, but i can't find the good logfile...
I'm discovering python, so i went to the sources,
(/usr/share/mythtv/mytharchive/scripts/mythburn.py ) and change line 5196
with :
BurnDVDISO(title.encode("utf-8"))
(i added the <<.encode("utf-8")>> part)
I don't know it it's an awful hack or a good way to solve the problem, i
have no "full view" of the source.
It's worked for me, and until now...
I didn't found a forum, so i opened a ticket. If it's "bad", i guess i'll
be rejected :-)
It seems it was discussed there [http://svn.mythtv.org/trac/ticket/2818]
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/5005>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list