Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Arunas Liuiza

    (@ideag)

    Hi,

    By default, the plugin embeds TOC at the begining of post content. if you didn’t turn that off in options and then added [toc], that would create two TOC’s – its the intended behaviour.

    For spaces/accented characters – what encoding do you use?

    The plugin cannot handle UTF-8 at the moment. You have garbled German umlauts as well.

    To solve the issue, you could replace this line in tiny_toc.php:
    $content = '<html><body>'.($content).'</body></html>';
    with this line:
    $content = '<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body>'.($content).'</body></html>';

    Cheers.

    Plugin Author Arunas Liuiza

    (@ideag)

    fix added in v0.5

    Character encoding issues still exist in 0.7.0. Adding

    $content = mb_convert_encoding($content, 'HTML-ENTITIES', 'UTF-8');

    before

    $content = '<html><head><meta charset="'.get_bloginfo('charset').'"></head><body>'.$content.'</body></html>';

    Fixed the problem for me.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘creates duplicate TOC's and causes character set problems’ is closed to new replies.