ID:2517504
 
Resolved
ascii2text() did not handle Unicode code points correctly and was instead following old outdated behavior.
BYOND Version:513.1490
Operating System:Windows 7 Home Premium 64-bit
Web Browser:Chrome 77.0.3865.120
Applies to:Dream Seeker
Status: Resolved (513.1491)

This issue has been resolved.
Descriptive Problem Summary:
Output of ascii2text() is incorrect.

Numbered Steps to Reproduce Problem:
Use code snippet to get output.

Code Snippet (if applicable) to Reproduce Problem:
mob
verb
SetTurfASCII()
var/i = 0
for(var/turf/t in world)
i++
t.text = ascii2text(i)
t.name = t.text
world << t.text
world
view = 32
maxx = 32
maxy = 32


Expected Results:
Proper UTF-8/Unicode characters in Map text mode.

Actual Results:
Stretched and unrecoqnizable characters.

Does the problem occur:
Every time? Or how often?
In other games?
In other user accounts?
On other computers?

When does the problem NOT occur?
No instances.

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
UTF-8/Unicode characters were not supported in previous versions.

Workarounds:
None.
Lummox JR resolved issue with message:
ascii2text() did not handle Unicode code points correctly and was instead following old outdated behavior.