substr() vs. mb_substr()
-
Hello,
I want to say that Smooth Slider is great for content slider. I found a small point maybe you can fix it in the next version of Smooth Slider. My site is Khmer language (it’s Unicode, UTF-8) and I set number of Maximum content size in Smooth Slider then it shows “Replacement Character” or “\uFFFD” or � and the end of cut content text in front-end. I had tried to find a solution to fix it and I found that mb_substr() can solve this problem.
Here’s what I changed to:
In DIR\smooth-slider\slider_versions\smooth_1.php : 131
$slider_excerpt = mb_substr($slider_content,0,$smooth_slider['content_chars'],'UTF-8');Reference: http://stackoverflow.com/questions/1973649/php-function-substr-problem
Cheers,
Sovichet
The topic ‘substr() vs. mb_substr()’ is closed to new replies.