首页Home › 编码与加密Encoding & Crypto
💬 Unicode 转字符串字面量Convert Unicode to String Literal
生成 u 转义字面量。可设置「风格」。Build u-escape literals. Settings: Style.
使用说明与常见问题How-to & FAQ
「Unicode 转字符串字面量」是什么?What is the Convert Unicode to String Literal tool?
生成 u 转义字面量。可设置「风格」。Build u-escape literals. Settings: Style.
如何使用「Unicode 转字符串字面量」?How do I use the Convert Unicode to String Literal tool?
在「Unicode 转字符串字面量」中,按需设置「风格」等选项,然后点击「转换」按钮即可。In the Convert Unicode to String Literal: Set "Style", then click "Convert".
生成的字面量用什么引号?Which quotes does the literal use?
输出用双引号包住的字符串字面量,里面的字符写成 \u 转义(如 \u4F60),可直接粘贴到 JavaScript、JSON、Java 等代码里使用。The output is a string literal in double quotes with characters written as \u escapes (such as \u4F60), ready to paste into JavaScript, JSON, Java and similar code.
有哪些选项可以调整?What options can I adjust?
「Unicode 转字符串字面量」的设置:「风格」可选 JavaScript u-escape、Python u/U-escape(默认 JavaScript u-escape)。每次生成结果都按当前设置处理。Settings in the Convert Unicode to String Literal — "Style": JavaScript u-escape, Python u/U-escape (default JavaScript u-escape). The result always uses the current settings.
编码和加密有什么区别?Is encoding the same as encryption?
编码(如 Base64、URL 编码)可直接还原,不提供保密性;加密需要密钥。「Unicode 转字符串字面量」的处理全部在本地完成。No. Encoding (Base64, URL…) is reversible by anyone; encryption needs a key. The Convert Unicode to String Literal works fully offline in your browser.
「Unicode 转字符串字面量」免费吗?需要注册吗?Is the Convert Unicode to String Literal free? Do I need an account?
「Unicode 转字符串字面量」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The Convert Unicode to String Literal is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.