ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Greek encoding destroyed after updating

August 23, 2010 10:20am

Subscribe [3]
  • #1 / Aug 23, 2010 10:20am

    Hi,

    My issue is very similar to this one: http://ellislab.com/forums/viewthread/143376/P18/

    In details, after updating my 1.6.8 installation to 2.1.0 all the greek characters appear as question marks. The URL is http://el.porcupine.gr/ but I have currently turned the site offline.

    I have no idea what to do with my DB and I am afraid to touch it since I am a complete dump when it comes to such issues.

    I host the website in Engine Hosting, so things must be a bit easier for admins to take care of it. Anyway, this is quite serious.
    Thanks in advance.

  • #2 / Aug 23, 2010 3:40pm

    Ingmar

    29245 posts

    Do you still have the original db dump? I suspect that your db was exported with a Latin-1 charset (very often the default option). Have you been using utf-8 before? Are you now?

  • #3 / Aug 23, 2010 4:40pm

    Yes I have a backup of the DB before the update.

    All tables and table fields used to have the latin1-swedish-ci collation.
    After the update most of the tables and their fields are using the utf8-general-ci collation. The rest keep using the latin1-swedish-ci collation.

    The problem seems to be the conversion of data. In the converted tables the data are stored as question marks instead of greek characters.

    What do you mean by “Have you been using utf-8 before? Are you now?” UTF-8 is the default encoding of my templates, if this is you are talking about.

    Thanks a lot.

  • #4 / Aug 23, 2010 4:48pm

    Ingmar

    29245 posts

    All tables and table fields used to have the latin1-swedish-ci collation.

    Yes. It looks like your data as then exported iso-8859-1 encoded, although it should have been utf-8. Take a look at this page for some background information.

    What do you mean by “Have you been using utf-8 before? Are you now?” UTF-8 is the default encoding of my templates, if this is you are talking about.

    There are other encoding options, as you know; iso-8859-7 comes to mind, e.g.

  • #5 / Aug 23, 2010 5:39pm

    So, I guess I have to downgrade to the previous version of EE, re-export the DB and re-install EE 2.0.1.

    Hmmm… not quite convenient. Especially when I need to do this for a bunch of websites. I wish there was a simpler way…

  • #6 / Aug 23, 2010 6:13pm

    Ingmar

    29245 posts

    No, I don’t think a downgrade would be needed. Just make sure that you export your database as UTF-8 in the first place. The article I have mentioned also has a conversion script. I have run it successfully to clear up these issues. If you can’t run it yourself, just how large is your db dump?

  • #7 / Aug 23, 2010 6:20pm

    I don’t get it. Sorry for being dump.
    After the conversion what should I do exactly?

    My DB is about 8.4MB.

  • #8 / Aug 24, 2010 9:32am

    Sue Crocker

    26054 posts

    If you take a look at the article Ingmar pointed to, it gives you a way to convert your existing database.

    Using this solution would be beyond the scope of what we provide for support, but we might be able to assist a bit, or a member of the Professionals Network could probably do it.

  • #9 / Aug 24, 2010 6:02pm

    Ingmar

    29245 posts

    As Sue said, you’d take the db dump, perform the necessary conversions and re-upload it again. Special care must be taken not to damage exp_sites, though. If you want you can send me your file to ingmar DOT greil AT ellislab DOT com and I’ll see what I can do.

  • #10 / Aug 25, 2010 6:11am

    Sue, Ingmar, thank you very much.

    I just emailed Ingmar my database.

  • #11 / Aug 25, 2010 7:54am

    Sue Crocker

    26054 posts

    Ingmar is the king of encoding issues. 😊 He works a later shift, so you may not get a response until later.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases