jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => Topic started by: romagromov on 04.03.2015 12:27:48

Title: Substr function issue[solved]
Post by: romagromov on 04.03.2015 12:27:48
Hi!
I add descriptions in Top Module:
strip_tags(substr($files[$i]->description, 0, 250))

But in the place where the text is cut off is displayed symbol �

I think it is problem of UTF-8, but no ideas how to fix it...

Title: Re: Substr function issue - [Solved]
Post by: romagromov on 04.03.2015 12:35:58
Fixed.
Need to use mb_ substr instead substr.