How are strings in Javascript encoded? It might surprise some people that Javascript uses UTF-16 to encode strings. But if your are like me, you might be wondering: how can I convert this to UTF-8? Well today we are going to find out. 🧐

The main focus in this post is on how to convert a UTF-16 string to UTF-8 in Javascript. It is not about how to...