-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,434
  • 16
  • 54
  • 74
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

1 Answers1

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,407
  • 4
  • 19
  • 31