Hacker News new | ask | show | jobs
by BrianHammond 5874 days ago
For those using Node.js, the same is

    var len = Buffer.byteLength(a_string, 'utf8')