I found another way, so instead of declaring
charset="UTF-8" for the script tag like this:
I can declare the charset for the web page itself using meta tag, so I can append
<meta charset="UTF-8"> to the DOM dynamically, and end up with something like:
<head> ... <meta charset="UTF-8"> ... </head>
©2020 All rights reserved.