Skip to content
Discussion options

You must be logged in to vote

Actually Node stores strings either as utf8 (99% of cases), or as utf16 if there are any utf16 characters in them.
So if the string is utf8 we can directly access ValueView.data8(), otherwise we have to copy and convert it to utf8.
I will open a draft PR with the changes, so we can test and talk about it.
The PR: #1262

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@BV-WebDev
Comment options

Answer selected by BV-WebDev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants