utf82hex:将utf8文本转换为utf8十六进制字符串的工具

时间:2021-05-06 18:05:06
【文件属性】:
文件名称:utf82hex:将utf8文本转换为utf8十六进制字符串的工具
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-06 18:05:06
JavaScript utf82hex 用法 > var utf82hex = require ( 'utf82hex' ) undefined > utf82hex . encode ( "漢字" ) // This is represented as unicode codepoints '\u6f22' + '\u5b57' 'e6bca2e5ad97' // Hex string representation of the unicode encoded in utf-8 > utf82hex . decode ( "e6bca2e5ad97" ) '漢字' 查看“ UTF-8(十六进制)”部分,并将其与输出进行比较以了解其工作原理。
【文件预览】:
utf82hex-master
----LICENSE(1KB)
----README.md(613B)
----.gitignore(526B)
----index.js(2KB)
----package.json(697B)

网友评论