0

My offline web application works correctly and displays arabic text without any errors .. except in datalists it displays arabic text as squares p.s: this problem is only in chrome .. other browser not showing squares i'm using this codes for utf-8 encoding:

header('Content-Type:text/html; charset=Windows-1256\n\n');

and for html:<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

1 Answers1

0

Is a bit late but it may help some one else

for Arabic you should use

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

not

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

alongside with

header('Content-Type:text/html; charset=Windows-1256\n\n');

if you are PHP for other language like .NET there is an equivalent way to set the header

anyway try to use UTF-8 in your new and upcoming project

M.Ali El-Sayed
  • 1,608
  • 20
  • 23