-1

I have a problem with a persian word in html page title.

Please see this :

image1

And this :

image2

It is not showing correct. How can I solve this?

Code Lღver
  • 15,573
  • 16
  • 56
  • 75
hasan
  • 11
  • 1
  • 1
  • That's an RTL issue. Good luck. Try http://www.fileformat.info/info/unicode/char/202e/index.htm – SLaks Jul 08 '13 at 19:09

2 Answers2

2

Allways properly set the encoding (e.g. in the html document or via headers):

Examples using UTF-8:

In HTML:

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

In PHP:

<?php
header('Content-Type: text/html; charset=utf-8');


Also check out Right to Left (RTL): Creating HTML Pages in Arabic, Hebrew and Other Right-to-left Scripts

In case you use PHP to serve the page, check out these resources:

Community
  • 1
  • 1
Markus Hofmann
  • 3,427
  • 4
  • 21
  • 31
0

also Farsi language in HTML document

<!DOCTYPE html>
<html lang="fa">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
</head>
<body>
  <a href="https://www.w3schools.com/tags/ref_language_codes.asp">and other languages</a>
</body>
</html>

and other languages