I have a code demo in lang.js:
var $lang = {
todayStr1: "Hôm nay" // Vietnam
todayStr2: "Today" // English
}
When I echo $lang result is :
H?m nay
Today
How to ideas for fix utf8 in JavaScript?
you can test it when attach lang.js
<script type="text/javascript" src="[path]/lang.js" charset="utf-8"></script>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With