JSFiddle - React, Tailwind, and code Playground

JavaScript

alert(escape('ä') + "\n" + encodeURIComponent('ä') + "\n" + encodeURI('ä'));