HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by codehero | Hacker News Reader
Full thread
codehero
·
code does not work, does not check for invalid UTF-8 characters
View on HN
felixge
·
That is done in Buffer.toString(), this stream filter just makes sure that no string conversion is attempted on a multibyte character that is still incomplete (valid or not).
Reply on news.ycombinator.com