WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
preg_replace issue in description - unicode characters displayed as un (1 post)

  1. kisssy
    Member
    Posted 2 years ago #

    Looking for a solution to my problem I came upon this thread: http://wordpress.org/support/topic/plugin-all-in-one-seo-pack-preg_replace-issue

    It seems that the issue hasn't been resolved. I am using the latest version of All-in-One SEO Pack and when there are accented characters in the description, they are displayed as unknown charachers.
    This results in getting the following message when trying to validate the page:
    "Sorry, I am unable to validate this document because on line 32 it contained one or more bytes that I cannot interpret as utf-8 (...)"

    The issue can be resolved temporarily by replacing line 533
    $description = preg_replace("/\s\s+/", " ", $description);
    with
    $description = preg_replace("/\s\s+/u", " ", $description);

    http://wordpress.org/extend/plugins/all-in-one-seo-pack/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic