https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/charCodeAt
I need to calculate byte size by given string which given from <input />.
I've found javascript function charCodeAt() which seems to be good to use.
It says charCodeAt uses utf-16, but I use <meta charset="utf-8"/>
Is it okay to use charCodeAt() in utf-8?