LinHES Forums http://forum.linhes.org/ |
|
utf-8 problem with myth(burn) http://forum.linhes.org/viewtopic.php?f=5&t=14018 |
Page 1 of 1 |
Author: | pingel [ Sat Feb 03, 2007 2:43 pm ] |
Post subject: | utf-8 problem with myth(burn) |
Hi, Living in Denmark I've had some post-install problems. Danish keyboard was one of them and now I have another. I have a full working backend running on a Gentoo Linux and decided to use KnoppMyth for a frontend. It installed painlessly and I added some automouting and stuff and it seems to work fine. However, when I try to archive some recordings to a DVD (not an archive). The recordings have Danish national characters in the description. It starts off fine copying the recordings to /myth/tmp and shortly after that it fails with the following in the /myth/tmp/logs/mythburn.log: Code: mythburn.py (0.1.20061201-1) starting up...
Process priority 8 script path:/usr/share/mythtv/mytharchive/scripts myth share path:/usr/share/mythtv passed job file: /myth/tmp/config/mydata.xml passed progress log file: /myth/tmp/logs/progress.log mythburn.py (0.1.20061201-1) starting up... Found 1 CPUs Obtaining MythTV settings from MySQL database for hostname berserk Processing Mythburn job number 1. Options - mediatype = 0, doburn = 1, createiso = 0, erasedvdrw = 0 savefilename = '' Looking for: /usr/share/mythtv/mytharchive/themes/G.A.N.T./theme.xml Loading font 0, /usr/share/mythtv/FreeSans.ttf size 23 Loading font 1, /usr/share/mythtv/FreeSans.ttf size 19 Loading font 2, /usr/share/mythtv/FreeSans.ttf size 17 wantIntro: 1, wantMainMenu: 1, wantChapterMenu:1, wantDetailsPage: 1 Final DVD Video format will be pal There are 2 files to process Copying file from /mythtv/live/1502_20070107195500.mpg to /myth/tmp/work/localcopy/1502_20070107195500.mpg /myth/tmp/work/localcopy/1502_20070107195500.mpg Copying file from /mythtv/live/1502_20070114195500.mpg to /myth/tmp/work/localcopy/1502_20070114195500.mpg /myth/tmp/work/localcopy/1502_20070114195500.mpg Pre-processing file '1502_20070107195500.mpg' of type 'recording' Forbrydelsen ------------------------------------------------------------ Traceback (most recent call last): File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 3600, in ? processJob(job) File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 3378, in proces sJob preProcessFile(node,folder) File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 1091, in prePro cessFile getFileInformation(file, os.path.join(folder, "info.xml")) File "/usr/share/mythtv/mytharchive/scripts/mythburn.py", line 882, in getFile Information node.appendChild(infoDOM.createTextNode(unicode(record[4], "UTF-8"))) File "encodings/utf_8.py", line 16, in decode UnicodeDecodeError: 'utf8' codec can't decode bytes in position 24-28: unsupport ed Unicode code range ------------------------------------------------------------ I am running out of ideas (and disk space) so any help is very much appreciated. Thanks, Søren |
Author: | pingel [ Sun Feb 04, 2007 1:53 am ] |
Post subject: | utf-8 also buggy in program guide |
I just noticed that utf-8 texts don't display properly in the program guide. Any help is much appreciated. Søren |
Author: | paulh [ Sun Feb 04, 2007 4:36 am ] |
Post subject: | |
If the descriptions are wrong in the TV guide then it sounds like your listings grabber is passing bad charactors to mythfilldatabase and that is what gets inserted into the DB. One thing you could try is when you use MythArchive on the page where you select files to add to the DVD if you press MENU and then 'Edit Details' you can edit the description removing the bad characters. If that still doesn't work then let me know maybe there is a problem with the way the description is handled. |
Author: | pingel [ Sun Feb 04, 2007 4:44 am ] |
Post subject: | |
I have another frontend which is compiled with utf-8 and that system shows everything just fine, also if I use the frontend on the backend server everything is fine. If I edit the title on my KnoppMyth frontend the result is that garbage is inserted in the sql database. So basically I think that a utf-8 distribution of KnoppMyth would fix the problems. Mixing latin1 and utf8 is an eternal struggle so I have decided (oh no) to switch to a manual install of linux + myth to see if I can get better results. If there is a quick fix for a backend with everything in utf8 and a KnoppMyth frontend, I can plug in my old harddrive and try that. Thanks, Soren |
Author: | paulh [ Sun Feb 04, 2007 5:24 am ] |
Post subject: | |
Not sure if this will help but have you tried running 'locale' on each machine to see if there are any differences between your locale settings. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |