upInCloud
upInCloud

Reputation: 1009

Chrome (& new Edge) not rendering Chinese characters with JQuery

I am trying to see why Chrome and Edge are not able to render Chinese text properly, though the same HTML file is able to render the text properly on Firefox.

Minimal repro content -

<html>

<body>
    <script>    
      <copy-pasted script content from https://code.jquery.com/jquery-3.6.0.min.js>
    </script>
    <p>
        菩薩慈悲 Some test
    </p>
</body>
</html>

Observations till now are -

Broken rendered text - enter image description here

Properly rendered text - enter image description here

Upvotes: 0

Views: 1391

Answers (1)

upInCloud
upInCloud

Reputation: 1009

adding <meta charset="utf-8"/> in <head> fixed the issue!

Upvotes: 1

Related Questions