duktape icon indicating copy to clipboard operation
duktape copied to clipboard

Does Buffer have plans to support more encodings?

Open alec-2018 opened this issue 1 year ago • 0 comments

@svaarala,hello great duktape developer,Currently duktape's buffer only supports utf8, is there any plan to support more encoding methods, similar to node.js('ascii', 'ucs2', 'base64', 'binary', 'hex'). For example:

console.log(buf.toString('base64'));

can get the correct result

alec-2018 avatar Feb 02 '23 02:02 alec-2018