All in One SEO Pack
[resolved] Multibyte strings are cropped wrongly (3 posts)

  1. elCHAVALdelaWEB
    Posted 2 years ago #

    Perfect plugin, thank you. I use it a lot.

    You need to use mb_strlen and mb_substr to crop post description and title correctly.

    I have changed them in functions trim_excerpt_without_filters and custom_output_option to make it work better with russian language.


  2. Peter Baylies
    Plugin Author

    Posted 2 years ago #


    Thanks for the tip; patches are welcome. Of course, not all PHP installations have these functions, so you'd need to check for their existence first and fall back if they aren't present. I'll add this to our roadmap.

  3. elCHAVALdelaWEB
    Posted 2 years ago #

    Glad to help :)
    It is on my own server, so I can be sure that the function exists. Also it looks like these functions are included in PHP since 4.0.6 version. I think very few servers are using lower verions :)

    One more time - great plugin !!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • All in One SEO Pack
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic