[mythtv-users] Character encoding problem in UK Radio Times XML data

Charlie Brej mythtv at brej.org
Fri Jun 17 22:56:50 UTC 2005

mythtv at varga.co.uk wrote:
> I can put the script to gether and cron it, but what's the best way to
> change a char in an XML file?

Pipe it through "sed s//\'/g" .

That is actually a two byte character so you cannot use 'tr'.


/usr/bin/tv_grab_uk_rt --config-file /root/.mythtv/uk_rt.xmltv 2>/dev/null \
|/bin/sed s//\'/g \
|/usr/bin/mythfilldatabase --no-delete --update --file 1 -1 - 2>/dev/null

         Charlie Brej
APT Group, Dept. of Computer Science, University of Manchester
Web: http://brej.org/                 Tel: +44 (0)161 275 6177
Mail: IT303, University of Manchester, Manchester, M13 9PL, UK

More information about the mythtv-users mailing list