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 UFT-8 string from file with japanese symbols, for example?

Author
Message
Alex_Peres
AGK Master
15
Years of Service
User Offline
Joined: 13th May 2009
Location: The Milky Way Galaxy
Posted: 3rd Apr 2017 12:35
How to read UFT-8 string from file with japanese symbols to manipulate it?
I've noticed thar ReadString function returns char*, but it seems like I need str::wstring...
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 4th Apr 2017 14:47
char* can hold either ASCII or UTF-8 strings, this is one of the advantages of UTF-8 that it is backwards compatible with ASCII. wstring holds UTF-16 strings, which are not compatible with AGK. If you want to manipulate UTF-8 strings with AppGameKit I recommend using the uString class that comes with it.
Alex_Peres
AGK Master
15
Years of Service
User Offline
Joined: 13th May 2009
Location: The Milky Way Galaxy
Posted: 4th Apr 2017 14:50
Thanks Paul!

Login to post a reply

Server time is: 2024-11-24 16:32:02
Your offset time is: 2024-11-24 16:32:02