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 / Possible Bug : Asc seems to have problems with higher values

Author
Message
Increase
7
Years of Service
User Offline
Joined: 21st Feb 2017
Location:
Posted: 1st Sep 2018 22:54
a$ = chr(56000) : b$ = chr(42892)
print (asc(a$)) // Returns -1
print (asc(b$)) // Returns 42892
puzzler2018
User Banned
Posted: 2nd Sep 2018 10:03
I dont think its a bug - AppGameKit hasnt been designed to just not go beyond 55295

Im not really sure what the signifies and why you would want to go beyond..




Increase
7
Years of Service
User Offline
Joined: 21st Feb 2017
Location:
Posted: 2nd Sep 2018 12:52
I can't see a reason why the reverse value shouldn't be designed to be accessable if chr(56000) is.
Paul Johnston
TGC Developer
21
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 3rd Sep 2018 15:46 Edited at: 3rd Sep 2018 15:46
The range 0xD800 to 0xDFFF (55296 to 57343) have been designated as invalid Unicode values as they are reserved for UTF-16 special cases. They do not represent any characters.

Login to post a reply

Server time is: 2024-04-18 12:52:55
Your offset time is: 2024-04-18 12:52:55