Unicode support (1 Viewer)

cybernn

Portal Member
March 9, 2007
46
4
Home Country
Russian Federation Russian Federation
Tell please, whether probably to change installer, thus that it would create tables MySQL in the coding utf8, instead of latin1. And that for support cyrillic symbols it is necessary to make following actions at installation:

I install TV Server. Then I do by means of mysql-gui-tools backup bases tvlibrary. The given file I open in Notepad, replace all found 'latin1' on 'utf8'.
In mysql-gui-tools I delete base tvlibrary. Then I restore it from the changed archive.

Then in file C: \Documents and Settings \All Users \Application Data \MediaPortal TV Server \Gentle.config I add in the end connectionstring - 'charset=utf8', that the following would turn out:
<DefaultProvider name="MySQL" connectionString="Server=mserver;Database=TvLibrar y;User ID=root;Password=xxxxx;charset=utf8" />

After each updating TVServer file Gentle.config needs to be changed. I act as follows - After each updating I copy in folder C: \Documents and Settings \All Users \Application Data \MediaPortal TV Server kept 1 time a file. After that it is necessary rescanning all which channels of the name not in the coding latin1 and if you use xmltv that compulsorily to start updating.​

The given decision works for me stably 4 months. As a result I have received correct display cyrillic fonts, names of channels, and Russian EPG
 

JaLooNz

Portal Member
March 13, 2008
20
1
Home Country
I am also looking towards the fixed builds appearing. Hopefully the database tables can be migrated automatically too.
 

rtv

Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    Finally I've finished the DB updates. So with the next public build every MySQL DB should automatically be updated to use UTF8 format. Please report back if there are still problems :D
     

    JaLooNz

    Portal Member
    March 13, 2008
    20
    1
    Home Country
    What about MS SQL server? I was trying to get it working for MS SQL but it doesn't appear to work.
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    What about MS SQL server? I was trying to get it working for MS SQL but it doesn't appear to work.

    MSSQL does use the database defaults when creating the tables.

    So if you set it's language correct it should almost work since it will internally use UCS-2 all the time.

    Please read International Features in Microsoft SQL Server 2005 for more details.
    You could change all string fields from varchar to nvarchar as well and live with the performance penalty.

    For beginners I'd recommend MySQL for now.
     

    chrissooo

    Portal Pro
    February 21, 2007
    434
    35
    Home Country
    Germany Germany
    MSSQL does use the database defaults when creating the tables.

    So if you set it's language correct it should almost work since it will internally use UCS-2 all the time.

    Hi rtv,

    i use also MSSQL. You say that we must set the correct language in MSSQL. German Channels works very good for me. But i look also polsh channels and here i have problem with some characters in the epg Data. How can i get it to work that i can see all characters correctly? Can i set UTF8 in the MSSQL Database? And when its possible ... can i migrate the old Database with just setting new charset of the tables? Or must i recreate the Tables?

    Chris
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Home Country
    Germany Germany
    Can i set UTF8 in the MSSQL Database? And when its possible ... can i migrate the old Database with just setting new charset of the tables? Or must i recreate the Tables?
    Chris

    Please read International Features in Microsoft SQL Server 2005 for more details.
    You could change all string fields from varchar to nvarchar as well and live with the performance penalty.

    For beginners I'd recommend MySQL for now.

    If you're not sure what the content above is about:
    1. Export your channels to XML, write down pending schedules, remember settings
    2. Install MySQL
    3. Update TVE3 - choose MySQL
    4. Import data from step 1.
     

    Users who are viewing this thread

    Top Bottom