错误代码门户
Node.jsNode.js错误代码

ERR_CRYPTO_HASH_DIGEST_NO_UTF16

crypto hash digest no utf16

代码 ERR_CRYPTO_HASH_DIGEST_NO_UTF16 · Node.js 报告的问题。

UTF-16 编码与 hash.digest() 一起使用。虽然 hash.digest() 方法允许传入编码参数,导致该方法返回字符串而不是 Buffer,但不支持 UTF-16 编码(例如 ucs 或 utf16le)。

Google Translate · 此内容为自动翻译。技术术语及适用条件请以英文原文为准。

The UTF-16 encoding was used with hash.digest(). While the hash.digest() method does allow an encoding argument to be passed in, causing the method to return a string rather than a Buffer, the UTF-16 encoding (e.g. ucs or utf16le) is not supported.

故障排除与诊断链接

请先确认文档中的产品、版本及发生环境与当前情况一致。