1

Ive been making a website for a technology fair project, and it has come to a stage where I want to make it more universal. However when I try to add another language (Chines Mandarin as an example) It just converts the text to some wired english characters.

Here is my example Website

<html lang="cmn">
<head>
    <title></title>
</head>

<body>
    <!-- This is meant to say in Mandarin "This is some text" -->
    這是一些文本
</body>
</html>

But when the page loads, this is what I get

 這是一些文本 

Im pretty sure that its not some settings in my browser Firefox, because I've or so tried it in Google Chrome

Any suggestions?

Jonty Morris
  • 797
  • 1
  • 10
  • 25
  • possible duplicate of [Displaying unicode symbols in HTML](http://stackoverflow.com/questions/1696619/displaying-unicode-symbols-in-html) – JJJ Jun 18 '15 at 08:00

2 Answers2

4

Add the following meta definition inside your head tag:

<meta charset="utf-8" /> 
Itay
  • 16,601
  • 2
  • 51
  • 72
3

Did you tried:

<meta charset="utf-8" />

?

Snake Eyes
  • 16,287
  • 34
  • 113
  • 221