Hacker News new | ask | show | jobs
by codezero 1610 days ago
You also can't URL Encode a string (In JS at least) if you truncate an emoji at the beginning or end of it.
1 comments

URL Encoding works on bytes and does not concern itself with the character encoding of those bytes (except assuming that it is an ASCII superset) so this is only a limitation of the JS implementation.
JS isn’t the only language that does this.