phpmady Posted March 13, 2010 Share Posted March 13, 2010 Hi, I am calling the content from tables, where my arabic content is placed, when am pulling its showing as squares, whats the reason, I have attached the file, other pages are working fine for me, regarding arabic content, but this page am geting error, thanks in Advance [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/195124-why-my-content-showing-as-squares-when-i-am-pulling-data-from-database/ Share on other sites More sharing options...
cags Posted March 13, 2010 Share Posted March 13, 2010 This will be an encoding issue of some kind. Try placing this at the top of your code.... header("Content-Type: text/html; charset=utf-8"); Link to comment https://forums.phpfreaks.com/topic/195124-why-my-content-showing-as-squares-when-i-am-pulling-data-from-database/#findComment-1025633 Share on other sites More sharing options...
phpmady Posted March 13, 2010 Author Share Posted March 13, 2010 This will be an encoding issue of some kind. Try placing this at the top of your code.... header("Content-Type: text/html; charset=utf-8"); Hi, I tried by inserting the line in the top of the page, but not working, Link to comment https://forums.phpfreaks.com/topic/195124-why-my-content-showing-as-squares-when-i-am-pulling-data-from-database/#findComment-1025659 Share on other sites More sharing options...
phpmady Posted March 13, 2010 Author Share Posted March 13, 2010 This will be an encoding issue of some kind. Try placing this at the top of your code.... header("Content-Type: text/html; charset=utf-8"); Hi, I got some idea from your reply, now my data is displaying correctly by using this text/html; charset=windows-1256" But the Problem am getting now is, when i hard code Arabic content in the page, it showing diffrently ط³ظٹط¨ ط³ظٹط´ط like this what might be the problem Thank You Link to comment https://forums.phpfreaks.com/topic/195124-why-my-content-showing-as-squares-when-i-am-pulling-data-from-database/#findComment-1025670 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.