We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Truncate with multibyte character

Fujita Haruna November 18, 2014 by Fujita Haruna

I'm working on version 1.8.3.
My language is Japanese, I have trouble with Truncate tag.
When I use Trancate with Japanese, a last character is garbled. (not always, but often)

So I tried this:

\_app\core\bundles\truncate\mod.truncate.php    
strlen -> mb_strlen (Line:16)
substr -> mb_substr (Line:17)

but nothing changed :(

I post this issue here http://support.statamic.com/discussions

Still no answer. Please help.

Answered by Jason Varga!
>>>>>>> Answered <<<<<<<
2 Replies
2 Followers