I have a problem with a persian word in html page title.
Please see this :
And this :
It is not showing correct. How can I solve this?
I have a problem with a persian word in html page title.
Please see this :
And this :
It is not showing correct. How can I solve this?
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:
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>