MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / unquote_u

Function unquote_u

emrun.py:184–192  ·  view source on GitHub ↗

Unquotes a unicode string. Translates ascii-encoded utf string back to utf.

(source)

Source from the content-addressed store, hash-verified

182
183
184def unquote_u(source):
185 """Unquotes a unicode string.
186
187 Translates ascii-encoded utf string back to utf.
188 """
189 result = unquote(source)
190 if '%u' in result:
191 result = result.replace('%u', '\\u').decode('unicode_escape')
192 return result
193
194
195temp_firefox_profile_dir = None

Callers 1

do_POSTMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected