Raised This Month: $51 Target: $400
 12% 

ExplodeString and unicode text


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hitmany
Senior Member
Join Date: Jul 2010
Old 12-07-2016 , 14:26   ExplodeString and unicode text
Reply With Quote #1

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



Last edited by hitmany; 12-07-2016 at 14:53.
hitmany is offline
dedimark
Senior Member
Join Date: Jul 2015
Location: London
Old 12-07-2016 , 18:15   Re: ExplodeString and unicode text
Reply With Quote #2

hitmany remove revemu from server and go back

NO-STEAM NO SUPPOPT
dedimark is offline
hitmany
Senior Member
Join Date: Jul 2010
Old 12-08-2016 , 03:45   Re: ExplodeString and unicode text
Reply With Quote #3

Quote:
Originally Posted by dedimark View Post
hitmany remove revemu from server and go back

NO-STEAM NO SUPPOPT
What is a revemu? I am using official sourcemod plugins and server only. And I didnt asking how to made illegal servers

Last edited by hitmany; 12-08-2016 at 03:46.
hitmany is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 12-08-2016 , 05:03   Re: ExplodeString and unicode text
Reply With Quote #4

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.

Last edited by Fyren; 12-08-2016 at 05:03.
Fyren is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode