ID:2905231
 
BYOND Version:514
Operating System:Linux
Web Browser:Firefox 121.0
Applies to:Dream Maker
Status: Open

Issue hasn't been assigned a status value.
Descriptive Problem Summary:

By specs, json sting should escape only some special characters, any unicode should be valid.

But Byond still escapes unicode characters. Feels like some leftovers from Byond pre-unicode time.

Numbered Steps to Reproduce Problem:

1. json_encode() string with unicode text

Code Snippet (if applicable) to Reproduce Problem:
/world/New()
var/list/L = list("string" = "Привет, Мир!")
world.log << L["string"]
world.log << json_encode(L)

pastebin if forum breaks unicode: https://pastebin.com/8ectdYnR

Expected Results:

json with unicode string

Actual Results:

json with escaped unicode characters:
{"string":"\u041f\u0440\u0438\u0432\u0435\u0442, \u041c\u0438\u0440!"}