MySQL character set (1 Viewer)

AlexPlas

Portal Pro
August 24, 2006
231
41
Kyiv, Ukraine
Home Country
Ukraine Ukraine
Hi there

I'm working now on support in MediaPortal (both 0.2 and 0.3 versions) cyrilic DVB texts (EPG, channel names, etc.). I have found problem in my TVServer installation. MySQL database is created with hardcoded charset 'latin1' for all tables, and connection with MySQL also use default charset 'latin1'. This make imposiblt to store any non-latin texts - cyrilic, herbew, greek, etc.
Here is my small patch that adds 'charset' parameter in MySQL connection string and change charsets on database creation to 'utf8'. This will fix problem for newely installed TVServer but not for existing. To fix problem on existing database there sholud be some SQL script to change tables and may be columns charset. I have not enoutgh expirience with MySQL and TVServer project to prepare such sctipt.
 

cpp2005

Retired Team Member
  • Premium Supporter
  • November 7, 2006
    164
    127
    The same problem exists with mssql server as well.
    To fix it, varchar data type need to be changed to nvarchar.
    I tried it for Channel table and it is working.
     

    Users who are viewing this thread

    Top Bottom