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.

Newcomers AppGameKit Corner / AGK String Encoding

Author
Message
Carharttguy
8
Years of Service
User Offline
Joined: 8th Jul 2016
Location: Belgium
Posted: 9th Aug 2016 10:45
Hello

Does anyone knows what the encoding of strings in AppGameKit 2 is? UTF-8? ASCII? Extended ASCII?
I cannot find this in the docs.

Thank you
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
Posted: 10th Aug 2016 10:43
From the development blog of AGK2: * Set the default file encoding for new files to Windows-1252 to support extended ASCII

Find it here: https://forum.thegamecreators.com/thread/210287
13/0
Carharttguy
8
Years of Service
User Offline
Joined: 8th Jul 2016
Location: Belgium
Posted: 10th Aug 2016 15:52
Thank you! Maybe an idea to update to docs with this info?
Scary Little Rabbit
15
Years of Service
User Offline
Joined: 4th Aug 2009
Location: Chelyabinsk, Russian Federation.
Posted: 23rd Sep 2016 09:11
AGK compiler is able to read UTF-8 encoded sources, readLine() and writeLine() are Unicode compatible too, but len(), mid(), left(), right(), asc() functions are used to work with ASCII only.
feel free to use this code to handle UTF-8 strings.
error #1:
'too many stars, too many stares. disembody.'
Unicode yours

Login to post a reply

Server time is: 2024-11-21 20:35:39
Your offset time is: 2024-11-21 20:35:39