LATEST TRANSMISSIONS

ENCRYPTED // PUBLIC KEY DETECTED

FILTER: TAG [encoding]
ONLINE
// Z.SHINCHVEN

Node.js 处理16进制 Unicode 中文字符串

Nodejs 中读取到像\u6210以\u的开头字符串,这不是乱码,这是16进制Unicode编码。它很好处理。 Unescape Unicode 我们可以使用进制转换的方法,将16进制的中文转成可阅读的utf-8编码的中文。 const unescapeUnicode = (str) => { return str.replace(/\\u[\dA-F]{4}/gi, (match) …

// Z.SHINCHVEN

Handling Zip Entry Name's Encoding in Nodejs

It's simple when you find the right package:compressing Install npm install compressing Unzip With Encoding const compressing = require('compressing'); const result = await compressing.zip.uncompress…