Forums

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

  1. Joen Asmussen
    Member
    Posted 4 years 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 3 years ago #

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

  3. pomartel
    Member
    Posted 3 years 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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags