[PATCH] Re: [mythtv] Character encoding in mythfilldatabase

Hirobumi Shimada shimada at systemcreate-inc.com
Sat Jun 5 09:33:49 EDT 2004


Hi

It's seems that my patch was wrong.
I made a patch again. please try it.
I tested german umlauts (u-umlauts only) and Japanese work fine.

Hiro

> I have a problem with german umlauts in epg data.
> The osd shows them as two characters and in the database
> they are even represented by four characters.
> I took a look into filldata.cpp and found several
> constructs like this:
>    querystr.sprintf("..%s..",..(*i).title.utf8().data(),..);
>    if (!query.exec(querystr.utf8().data())) ..
> The text is encoded twice.
> As a test i changed it into query.exec(querystr) at the
> place where the program info is inserted into the database
> and now the osd shows the umlauts.
> But i don't know if the double encoding itself is the fault
> or if the real problem is somewhere else where the double
> encoding normally is reverted.
>
> Stefan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: filldata.cpp.patch
Type: text/x-diff
Size: 19283 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20040605/21f49c9a/filldata.cpp-0001.bin


More information about the mythtv-dev mailing list