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

code.sixapart.com

137 479

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

238 797

Last Topic: Manifest Schema Compatibility Issue When Restoring Blog by Matt on Oct 17, 2012

1858 6594

Last Topic: Categories and Basename Publishing Issues by e21media on Oct 25, 2012

88 307

Last Topic: absolute publish date in Manage Entries screen by .mau. on Apr 18, 2012

1488 5347

Last Topic: Anti-cloning by .mau. on Oct 29, 2012

732 3093

Last Topic: Blog moved server - now users cannot access blog? by mowgs on Oct 30, 2012

89 317

Last Topic: How to "pretify" a url in htaccess with a few wildcards by Caio on May 30, 2012

183 771

Last Topic: Commenting with TypePad by Rob Ferrara on Oct 17, 2012

212 680

Last Topic: Does MT-Approval work in MT5? by DLpres on Sep 25, 2012

27 100

Last Topic: Upgrading MT by Caio on Oct 15, 2012

49 224

Last Topic: Movable Type 6 Ideas by Caio on May 28, 2012

65 248

Last Topic: Expanding new rich text editor and implementing table function by Takeshi Nick Osanai on Jul 30, 2012