Support » Plugins and Hacks » [Plugin: Textile2] Solution to problem with foreign characters being borked by MTTextile

  • 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/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thank you!! I’d been looking for where this bug was, and you saved me a lot of time!

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Textile2] Solution to problem with foreign characters being borked by MTTextile’ is closed to new replies.