Answer the question
In order to leave comments, you need to log in
How does buffer in node.js translate the '#' character?
Hello!
let buff = Buffer.from('A');
console.log('A'.charCodeAt( 0 )); // 65
console.log(buff); // <Buffer 41>
console.log(buff.length); // 1
let buff = Buffer.from('№');
console.log('№'.charCodeAt( 0 )); // 8470
console.log(buff); // <Buffer e2 84 96>
console.log(buff.length); // 3
e2(16тирич.) === 11100010
84(16тирич.) === 10000100
96(16тирич.) === 10010110
buffer
! Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question