UZRE.uz

Gibberish Encoding of Russian Entries

Vote 0 Votes

Hi, I've been using MovableType (4.32) for a long time, and having a weird encoding issue. Russian entries I have in the platform now are showing up quite odd.

Interestingly, when I am checking the database (PhpMyAdmin) Russian entries are showing correctly in Cyrillic .

I am sharing the screenshot as follows: http://www.uzre.uz/en/2011/05/18/weirdo.PNG

Not sure, what is wrong. I really, really would appreciate any help

Reported on Movable Type 4.3

8 Replies

| Add a Reply
  • You're having an encoding issue!

    If you provide me the URL where this issue occurs I could provide you further advice.

    It could be for instance that your website is encoded in UTF-8, but your server is imposing an ISO encoding in the pages header.

    Would be able to confirm or infirm this assumption after getting your Website URL and checking it myself.

    Kind Regards,
    Mihai Bocsaru

    ----------------------------------
    Daily Movable Type Consultant

    Web Development
    Movable Type Consulting
    Six Apart Partner

    http://www.pro-it-service.com/
    ----------------------------------

    Movable Type Demo
    http://www.movabletypedemo.org/
    ----------------------------------

    Open Melody Demo
    http://www.openmelodydemo.org/

  • Sherzod Ruzmetov

    here is the page: http://www.uzre.uz/forum/ . The content of the movabletype dashboard is similar too. In fact, not only the entry contents are problematic, but also the name of the blog, which is written in Russian, appears in gibberish in MovableType dashboard.

    Content encoding I'm using is utf-8, both in mt-config.cgi and in my templates. My template files also have their utf bit properly set. I also have AddDefaultCharset UTF-8 in my apache configuration.

    The weird part is when I access the same entries myself using Perl I get proper results: http://www.uzre.uz/cgi-bin/mt-problem.cgi . So database is storing data properly.

    I even tried to disable HTMLEntities, to no avail.

    I am good at debugging. But this time I yield.

  • Sherzod Ruzmetov

    Another very important update. Look at http://www.uzre.uz/cgi-bin/mt-problem.cgi

    Basically, when I access the mysql database bypassing MT::Object, I get expected results. But when I use MT::Entry to access and output data the problem i've been having persists.

    Any thoughts at what direction I should head?

  • I see you already checked most of the things described in http://www.movabletips.com/2010/03/iso-8859-1-utf8-character-sets-encoding-movable-type-and-you.html

    But here is something else worth investigating:

    I took a look at your mt-problem.cgi link in Google Chrome. I noticed that when I switched the encoding of the page to Windows-1252 the 'good' perl-dbi section would look exactly like what the 'bad' MT:Entry section looks like with the default UTF-8 encoding switched on.

    So for some reason the output of MT::Entry is getting transformed from UTF-8 to Windows-1252 somewhere.

    I hope this helps your further debugging. Maybe grep for '1252' in your MT folder and/or the apache config?

  • Sherzod Ruzmetov

    Maarten,

    Your investigation cheered me up at first, but now I found no reference to "1252" in anywhere. I skimmed through the source code of MT::Entry and MT::Object but found no clues.

    Are there any MT developers who may have a slightest clue?

    I also thought it might be the affect of a text filter. But looking through the source code of Entry.pm I see that entry_title isn't being filtered.

    The weirdest thing is I've been using this installation of Movable Type for almost two years. This thing happened out of blue! I touched absolutely nothing, installed no modules or plugins nor addons.

  • When did this problem start, Sherzod?

    Did it start after a movable type upgrade?

    Kind Regards,
    Mihai Bocsaru

    ----------------------------------
    Daily Movable Type Consultant

    Web Development
    Movable Type Consulting
    Six Apart Partner

    http://www.pro-it-service.com/
    ----------------------------------

    Movable Type Demo
    http://www.movabletypedemo.org/
    ----------------------------------

    Open Melody Demo
    http://www.openmelodydemo.org/

  • Sherzod Ruzmetov

    Mihai,

    As I said, I did absolute nothing.

    But now, when I tried to upgrade my MT installation to 4.35 (from 4.32) hoping it may fix this problem, I get another problem: "undefined type: longtext". Check this out: http://uzre.uz/cgi-bin/mt/mt.cgi

  • Hi Sherzod,

    I've replied to you on the other topic you've created specifically for this new error message you're getting.

    Kind Regards,
    Mihai Bocsaru

    ----------------------------------
    Daily Movable Type Consultant

    Web Development
    Movable Type Consulting
    Six Apart Partner

    http://www.pro-it-service.com/
    ----------------------------------

    Movable Type Demo
    http://www.movabletypedemo.org/
    ----------------------------------

    Open Melody Demo
    http://www.openmelodydemo.org/

Add a Reply

If you need to share template code, replace all the "<" signs with "&lt;" or use this utility.

Forum Groups

1774 6167

Last Topic: Template modules by Zielun on Feb 16, 2012

86 302

Last Topic: website entries by masoud on Oct 26, 2011

1434 5088

Last Topic: Maintenance announcement by Nick on Feb 17, 2012

695 2912

Last Topic: Insert Image / File Fails by Russ Miller on Feb 10, 2012

84 291

Last Topic: How to have some other characters in entry basename automatically written by Afshin Haghighatnia on Dec 22, 2011

174 740

Last Topic: Captcha images rendering slowly by ScottM on Feb 12, 2012

190 568

Last Topic: Analytics Reporting by michael webster on Feb 5, 2012

48 210

Last Topic: An idea and also a request by Afshin Haghighatnia on Jun 29, 2011

64 246

Last Topic: jQuery in MT 5.1 still at 1.4 - why? by perlmonkey on May 25, 2011

code.sixapart.com

137 478

Last Topic: Getting a thumbnail with xpath by Peter on Mar 13, 2011

222 720

Last Topic: Custom Field for Asset Not Appearing by android on Feb 9, 2012