- When do I need \uXXXX escapes?
- When embedding non-ASCII text in ASCII-only contexts: JS string literals without UTF-8, JSON meant for ASCII-safe transport, URL query strings, and Java/Python source files with ASCII source encoding.
- Are surrogate pairs handled?
- Yes — characters outside the Basic Multilingual Plane (most emoji, CJK extension) use UTF-16 surrogate pairs or \u{} syntax in newer JS. The tool produces both depending on your target.
- What about decoding?
- Yes — paste escaped text and get unescaped back. Round-trips are lossless for valid input.
- Does it escape printable ASCII?
- No by default — printable ASCII passes through unchanged. Toggle 'escape all' for fully universal ASCII-only output.