Steps to create a web page in bangla

Language Code - BN http://www.w3schools.com/tags/ref_language_codes.asp?output=print

I tried to create a page that would be in Bengali. But as a result, I get something ???????????

that's what i tried

<!doctype html> <html lang="bn"> <head> <title > ডোমেইন সার্ভিস </title> </head> <body> ডোমেইন সার্ভিস </body> </html> 

Could you tell me the steps that I will need to create a page in Bengli.

+4
source share
2 answers

The language code has nothing to do with the characters available to you. It is used for such things as selecting a dictionary for screen readers, search engine filtering and automatic translation services.

To use the characters you need, you need to:

  • Save the document in character encoding that supports the characters you want to use. In general, it should be UTF-8. How you do this depends on your choice of editor. If you are doing any kind of server-side programming, you need to make sure that you keep track of which encoding your data contains, and save it in encodings that support the characters you need. Poorly tuned databases are a common way to break encoding.
  • Tell the browser which encoding you are using. This should be done through the HTTP Content-Type response header. ( Content-Type: text/html;charset=utf-8 ). How you determine this depends on which web server you are using, and if you are doing any server-side programming. You must also specify the encoding in the document itself through the meta element: <meta charset="utf-8"> .
+3
source

Try adding the utf-8 meta tag and save the file in utf-8 format.

+2
source

Source: https://habr.com/ru/post/1496298/


All Articles