4

In my html document, I have my html as:

<html>
<head><title>title</title></head>

<body>  <div>विजय कदम</div>   </body>
</html>

I am getting output as:

विजय कदम

Any idea? what do I need to specify?

Kuf
  • 17,318
  • 6
  • 67
  • 91
Ashwin
  • 12,081
  • 22
  • 83
  • 117

2 Answers2

4
  1. Save your file in UTF-8 encoding
  2. Add meta tag to the html to support UTF-8
  3. Make sure your server supports UTF-8 encoding, an example for Apache.

How to change the page encoding to UTF-8:

Add the following tag to the HTML:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 

Or the HTML5 equivalent:

<meta charset="utf-8" />

for more information about characters encoding check this out.

Community
  • 1
  • 1
Kuf
  • 17,318
  • 6
  • 67
  • 91
2

You need an editor that saves in Unicode UTF-8.

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> 

you can also use a converter to display hindi. link: http://vikku.info/indian-language-unicode-converter/hindi-unicode-converter.html what you do is, you paste html text. Hope this helps!