Arabic text and links getting garbled in HTML
I am trying to create webpages with Arabic text. I got the pages to finally work on my Mac. When I checked the pages from my Windows 7 PC, this happened:
Image 1 -
(source: greaturl.com)The text got all garbled. But before that, it was adding a code to my links like %AB%20%XY which I looked up and represents the RTL direction.
But when viewed on my Mac it was fine. But I have thoroughly confused myself reading reams of info on encoding and now am not sure which way is up
Image 2 -
(source: greaturl.com)The page names were in Arabic and were showing up fine on hosting file manager but then they turned to these garbled file n开发者_JAVA百科ames.
I'm assuming that the hosting server did this or that somehow the server read the file as something other than utf-8
Please help, I have read up and am utterly confused. Thanks!
Add this two lines only
<head>
<meta content="text/html; charset=windows-1256" http-equiv="Content-Type" />
<meta content="ar-sy" http-equiv="Content-Language" />
</head>
Link
精彩评论