Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / [TIER2] How to read UTF-8 symbols from a file and handle it as text?

Author
Message
Alex_Peres
AGK Master
15
Years of Service
User Offline
Joined: 13th May 2009
Location: The Milky Way Galaxy
Posted: 30th Jul 2017 19:22
How to read UTF-8 symbols from a file and handle it as text?

I know I should use uString but I don't know how. It works not like std:String.


That code is only shows something like that "ǍŶǺǻǼǽǾ".
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 30th Jul 2017 21:35 Edited at: 30th Jul 2017 21:45
I have just recently had issues with this in VB. Apparently you need a font that supports utf8. I think times new roman supports UTF-8
I'm not 100% sure this will work but it's worth a try
Alex_Peres
AGK Master
15
Years of Service
User Offline
Joined: 13th May 2009
Location: The Milky Way Galaxy
Posted: 31st Jul 2017 14:04
The default font is ok. The problem was in the file, I didn't save it as UTF-8.

But now I have another problem.
I want to make something like parser, but I don't know how to use uString format. It seems like it close to anything.
I can't even get access to the chars inside the string like I do with std::string format: if(Str[i] == '#'){.......}

Login to post a reply

Server time is: 2024-09-30 05:27:54
Your offset time is: 2024-09-30 05:27:54