There was an error while loading. Please reload this page.
Buffer
usc-2
Buffer.isEncoding
Nodejs:10.7.0 OS:Win 8.1 (SP1, x32)
If you use Buffer.isEncoding('usc-2'), this will return you true.
Buffer.isEncoding('usc-2')
true
However, most of Buffer methods are NOT supporting this encoding. A typical example is (either of them will throw exceptions):
constc=newBuffer('aaa','usc-2');constc=Buffer.from('aaa','usc-2');
Is there anything conflicting with the encoding type?
Nodejs:10.7.0
OS:Win 8.1 (SP1, x32)
If you use
Buffer.isEncoding('usc-2'), this will return youtrue.However, most of
Buffermethods are NOT supporting this encoding. A typical example is (either of them will throw exceptions):Is there anything conflicting with the encoding type?