What will be the default encoding when converting a buffer to a string in Node.js?

  • utf-8
  • binary
  • ascii
  • base64
When converting a buffer to a string in Node.js, the default encoding is utf-8. It's important to specify the encoding when performing this conversion, as using the wrong encoding can lead to incorrect results or data corruption.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *