[mythtv] [PATCH] Fixed problems with non ascii characters inmythvideo

Tako Schotanus quintesse at palacio-cristal.com
Mon Aug 18 18:49:36 EDT 2003

Just out of curiosity, how do you know that QChar will give you the
correct character? Or do QChars always use UTF8 to encode characters?


> -----Original Message-----
> From: mythtv-dev-bounces at mythtv.org 
> [mailto:mythtv-dev-bounces at mythtv.org] On Behalf Of Mikael Magnusson
> Sent: maandag 18 augustus 2003 17:20
> To: mythtv-dev at mythtv.org
> Subject: [mythtv] [PATCH] Fixed problems with non ascii 
> characters inmythvideo
> I'm reposting my mythvideo patch with diffs against current cvs.
> This patch solves the following problems.
> 1. Expressions of the form "{" appearing in the meta data.
> They are used by www.imdb.com for non ascii characters. I 
> implemented a 
> decoder for such numeric character references. 
> 2. Non ascii characters are changed to "?" in the meta data.
> QString::sprintf expects the %s string parameters to be in 
> utf8 format. 
> Fixed
> 2. Can't play movies which file name contains non ascii characters.
> The system command should be converted to local8Bit. Fixed
> I have tested the patch on an utf8 locale and briefly on 
> iso-8859-1, and 
> it seems to work.
> The program table in the mythconverg database is encoded in utf8. I 
> think the meta data should changed to utf8 also. Currently latin1 is 
> used.
> /Mikael Magnusson

More information about the mythtv-dev mailing list