default userpic

Bug in plugins/Markdown/Markdown.pl

Vote 0 Votes

I've got the same problem as http://forums.movabletype.org/2009/12/wide-character-in-subroutine-entry-error.html described.

My old site was built with version 4.3, and I update to version 5.
This site has lots of Japanese and Chinese characters.

When I try to publish the blog, I got the "wide character in subroutine entry" error.

The problem is in cgi-bin/mt/plugins/Markdown/Markdown.pl.
Here is the solution:

add one line in head:
use Encode qw(encode_utf8);

modify line 286:
my $key = md5_hex($1);
==>
my $key = md5_hex(encode_utf8($1));

Reported on Movable Type 5

4 Replies

| Add a Reply

Add a Reply

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

Forum Groups

1771 6153

Last Topic: Preview Template - Where can I find it? by Dice on Feb 6, 2012

86 302

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

1428 5076

Last Topic: Stupid Question? How to make a static homepage by Jeremy on Feb 3, 2012

693 2907

Last Topic: database upgrade hangs - upgrading to 4.37 by CrankyProfessor on Feb 1, 2012

84 291

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

173 737

Last Topic: About the MT version stated in HTML source by Alex E. Schneider on Feb 7, 2012

190 565

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

221 710

Last Topic: Publish queue cache coherence issue by Istvan Kallai on Jan 27, 2012