Unicode 编码 / 解码
将文本转换为 Unicode 转义序列,并将序列解码为可读文本。
输入
结果
使用方法
Working with unicode escapes
Encode turns each character into a backslash u escape. Decode converts those escapes back to characters.
- Paste text or escapes.
- Press Encode or Decode.
- Copy the result.
常见问题
How are characters above the basic plane handled?
Characters outside the basic multilingual plane use surrogate pairs, exactly as in JSON.
Is uppercase or lowercase used?
Encode produces lowercase hexadecimal digits for compact output.