[mythtv] Character encoding in mythfilldatabase
Stefan Ernst
ml at ernx.de
Fri Jun 4 11:51:12 EDT 2004
Hi!
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
More information about the mythtv-dev
mailing list