attractplus
attractplus copied to clipboard
Unicode Support in Squirrel
I noticed that squirrel strings in attract mode don't support Unicode escape chars. Can that be added in?
For example this works great on squirrel 3.2 but fails when run in a attract mode layout:
local text = "OK, Maybe It\u2019s Too Much Pepper\n";
print(text);
Unfortunately it's not that easy. We've tried to update Squirrel to the latest version, but Squrrel also needs a new Sqrat, a c++ bridge, which did not play well with AM.
Thanks, would be nice to have but I can work around that for the moment.
The workaround is to use UTF-8 https://www.cogsci.ed.ac.uk/~richard/utf-8.cgi?input=2019&mode=hex
local text = "OK, Maybe It\xE2\x80\x99s Too Much Pepper\n";
print(text);