WordPress.org

Forums

Advanced Excerpt
Replace substr() with mb_substr() (1 post)

  1. Mikko Saari
    Member
    Posted 2 years ago #

    I noticed the plugin uses regular, non-multibyte string functions, like substr(). This sometimes causes problems with UTF-8 text, when the substr() cuts the excerpt in the middle of a multibyte character. Fix is simple: replace substr() with mb_substr(). This is best done conditionally, as not all PHP installations have multibyte string functions installed.

    http://wordpress.org/extend/plugins/advanced-excerpt/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Excerpt
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Mikko Saari
  • This topic is not a support question
  • WordPress version: 3.4.1