> when i do :
> mythfilldatabase --update --file 1 0 /tmp/tv.xml with tv.xml coming from tv_grab_fr,
> if thereis french signs or comma in title or any field i get error message :
> Error in 1101:14: tag mismatch
> 1101 is the number line where the error occurs.
> i must hand replace these mismatchs , so not very easy nor fast ;(
> sorry for my bad english but i'm french
> thanks for help!
Hi,
I ran into the same trouble as yours.
I found a (temporary) solution to allow database updates : change coding pages of the xml file to UTF-8.
Following http://articles.mongueurs.net/magazines/perles/perles-02.html intructions you may achieve the conversion with the following command:
# $ perl -MUnicode::String=latin1 -ne 'print latin1($_)->utf8' file.xml > newfile.xml
or, if you have perl 5.8+ (easier!): # $ piconv --from latin1 --to utf8 file.xml > newfile.xml
Next run mythfilldatabase --file 1 0 newfile.xml
I couldn't find any better encoding source than latin1. There are still some display problems with the ' character.
Besides this of course demands to manually use tv_grab_fr , pivconv , and mythfilldatabase. But at least you get the updates! :)
Hope this helps. Eric
PS: well as I just finished this q&dirty script let's make things clearer:
#! /bin/sh # This script is intended to manually do the french mythfilldatabase # Its main purpose is crontab scheduling. # Might be of help at least until a better workaround is implemented echo "Starting manual_mythfilldatabase_fr..." /usr/bin/tv_grab_fr --output /home/mythtv/.xmltv/TV_Listing_raw.xml
/usr/bin/piconv --from latin1 --to utf8 /home/mythtv/.xmltv/TV_Listing_raw.xml > /home/mythtv/.xmltv/TV_Listing_UTF8.xml
/usr/local/bin/mythfilldatabase --file 1 0 /home/mythtv/.xmltv/TV_Listing_UTF8.xml
_______________________________________________ mythtv-users mailing list [email protected] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
