GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — string scape must be integer · Issue #1652 · TypeScriptToLua/TypeScriptToLua Open DescriptionIf we are going to use hex escapes or even special characters like Currently, even if characters are escaped in hex in TypeScript, they remain special characters in Lua, which can cause compatibility issues and incorrect string interpretation. typescript console.log('atenção') console.log('aten\xC3\xA7\xC3\xA3o') lua (current) print('atenção') print('atenção') lua (proposal) print('aten\195\167\195\163o') print('aten\195\167\195\163o') As a practical example, I have created a JavaScript tool that performs this conversion and that I use daily for Lua 5.1 string escaping: https://gly-engine.github.io/tool-lua51-text-escape I would like to open a GitHub issue to have this considered and fixed, since it affects portability and proper UTF-8 string handling when converting TS code to Lua 5.1. ActivityMetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |