[mythtv-commits] Ticket #5364: Adapting DB to utf8 can be done without loosing non-ascii characters
MythTV
mythtv at cvs.mythtv.org
Thu May 15 09:48:52 UTC 2008
#5364: Adapting DB to utf8 can be done without loosing non-ascii characters
------------------------------+---------------------------------------------
Reporter: jehon07 at yahoo.fr | Owner: awithers
Type: enhancement | Status: new
Priority: major | Milestone: 0.22
Component: mythvideo | Version: head
Severity: high | Mlocked: 0
------------------------------+---------------------------------------------
You are adapting DB so that columns become real "utf8" data. Great!
But if you change them directly "alter x modify coly character set utf8",
mysql will translate the content (wich is in utf8, but known by mysql as
latin1) from latin1 to utf8.
This can be avoided:
1. Alter x modify coly blob
2. Alter x modify coly varchar(128) character set utf8
This can add some nasty \0 character at the end, thus a third command can
be added:
3. upgrade x set coly = replace(coly, "\0", "")
This is explained in
http://dev.mysql.com/doc/refman/5.0/en/charset-conversion.html
Thank you for your great job in mythtv!
I hope this small info I give here can help.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/5364>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list