Forums

[resolved] [Plugin: Textile2] Solution to problem with foreign characters being borked by MTTextile (3 posts)

  1. Joen
    Member
    Posted 7 months ago #

    After years of problems with Textile for Wordpress plugins, I think I've solved the problem I've been experiencing.

    When using Adam Gessaman's Textile 2.1, options:

    * MT Textile
    * Smartypants and Texturize enabled
    * utf-8 in and out

    Textile would work _almost_ perfectly. It would apply textile syntax, it wouldn't touch scripts and Wordpress shortcodes, and everything would be dandy. Except for foreign characters, such as æ, ø and å, which would be borked into two-character mumbletext.

    I managed to fix this problem.

    Editing Textile2.php from the plugin file, I commented out line 1345, that said $text = $this->encode_html($text);. That, it seems, was enough to fix all my troubles. In other words,

    $text = $this->encode_html($text);

    became

    // $text = $this->encode_html($text);

    I hope this is helpful to others, and that commenting out that line didn't break anything else.

    http://wordpress.org/extend/plugins/textile-2/

  2. vaelenorg
    Member
    Posted 1 month ago #

    Thank you!! I'd been looking for where this bug was, and you saved me a lot of time!

  3. pomartel
    Member
    Posted 1 month ago #

    Great tip! This has been bugging me for a while! But the line to replace is not located in textile2.php but in textile.php located in the "class" folder of the plugin.

Reply

You must log in to post.

About this Topic

Tags