[mythtv-commits] Ticket #7813: Wrong encoding of actor names
MythTV
mythtv at cvs.mythtv.org
Sat May 8 03:56:03 UTC 2010
#7813: Wrong encoding of actor names
------------------------------+---------------------------------------------
Reporter: jan@… | Owner: ijr
Type: defect | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - General | Version: 0.22-fixes
Severity: medium | Resolution:
Mlocked: 0 |
------------------------------+---------------------------------------------
Comment(by mdean):
(In [24485]) Fix encoding of names in program details screen.
Qt-MySQL drivers use QVariant::ByteArray for string-type MySQL fields
marked with the BINARY attribute (those using a *_bin collation) and
QVariant::String for all others. Since QVariant::toString() uses
QString::fromAscii() (through QVariant::convert()) when the QVariant's
type is QVariant::ByteArray, we have to use QString::fromUtf8() explicitly
to prevent corrupting characters for any columns using a binary collation
(or, at the minimum, in any location where the value retrieved from the
database is shown to the user).
The following columns are binary (using utf8_bin collation), and may
require similar treatment:
keyword.phrase
oldprogram.oldtitle
people.name
powerpriority.priorityname
recgrouppassword.recgroup
storagegroup.dirname
Refs #7813.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/7813#comment:5>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list