DecodeBox
Search
K
Guides
SDK Reference
Operations
Playgrounds
Operations Explorer
Auto Detection Lab
Encoding & Decoding Lab
Open DecodeBox
Theme
Menu
ON THIS PAGE
#
Escape Unicode Characters
Converts non-ASCII characters to \u-escaped sequences.
ID:
escape-unicode
Category: Data format
Aliases: unicode encode, escape
#
Arguments
Argument
Type
Default
Constraints
Prefix
option
"\\u"
\u, %u, U+, \x, &#x. Which escape syntax to write. JavaScript uses \u; URLs use %u.
Encode all characters
boolean
false
Escapes ASCII too, not just what is above 127.
Uppercase hex
boolean
false