httpinvoke icon indicating copy to clipboard operation
httpinvoke copied to clipboard

Content length check fails in browser (but not in Node) when content contains emojis

Open jhsware opened this issue 10 years ago • 0 comments

Issue related to this:

    // Characters such as emojis are handled differently by Javascript. They are
    // called an astral symbol and are respresented by a surrogate pair, ie two chars.
    // Some references:
    // https://mathiasbynens.be/notes/javascript-unicode
    // https://en.wikipedia.org/wiki/Plane_(Unicode)#Basic_Multilingual_Plane

jhsware avatar Jan 07 '16 14:01 jhsware