I have long text which I want to show as menu.
I am using ExplodeString to break text into lines
But when I using ExplodeString with unicode text - I see replacement character
How to solve this issue?
This long text using in translation files, I have no issues with latin symbols
And I cant just add "/n" in translations, bcs this text also used in chat
Spoiler
PHP Code:
new length = strlen(text);
decl String:BackupDescr[2][1024], String:LongDescr[10][1024];
if(length > 40)
{
new iStrParags = RoundToCeil(float(length)/40)+1;
If you have multibyte Unicode characters, then a character can be larger than one byte. Your code splits based on bytes. You can split a character in half, so you end up with garbage.