Display Urdu Text on Browser

Making a website in urdu

the characters you are seeing are not Unicode, they are HTML Entities representing Unicode characters.

Your code doesn't need to have those characters to display the Urdu. All you need, is the charset meta tag that you have in the <head> section

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

if you are using a modern text editor , like Brackets.io or Sublime, you can directly enter the urdu text in your code, provided that you are saving your html files with UTF-8 Encoding.

Arabic Script Language Not Displaying In Firefox

You aren't specifying the encoding. If you rely on default values, such values may not be correct.

Server should send a proper Content-Type header:

Content-Type: text/html; charset=utf-8

If it doesn't (or there isn't a server involved), you can emulate it in HTML itself:

  • HTML5

    <meta charset="utf-8">
  • Earlier versions:

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

Replace UTF-8 with the actual encoding (though in 2020 the recommended encoding is UTF-8).



Related Topics



Leave a reply



Submit