How to display text in other languages, e.g. Hindi or Bengali, on your web page

By Rohit Nirmal
If you can see Hindi words on web pages, this means your computer already has software installed to support Hindi characters.

In your notepad file simply write Hindi characters wherever you want them, or copy Hindi text from any website and paste into your text file. Save the file in the UTF-8 file format. (In Notepad on Windows 7 there is an option to save with encoding= UTF-8) However, Wordpad does not have this option.

In your HTML file, set the encoding to UTF-8. This is done as follows:


<!DOCTYPE html>
<html dir="ltr" lang="en-US">
<head>
<meta charset="UTF-8" />

That should be it. All the serious editors (even Notepad) must have such an option. For Notepad (on Win7), select 'Save As' and somewhere at the bottom of the box (near the Save button) there is a list of Encoding types. By default it is ANSI, but you may switch to UTF-8 at will.