phpmady Posted March 14, 2010 Share Posted March 14, 2010 Hi, I am using arabic fonts, where i use the encoding type of windows-1256 format, when i fetch the data from the table no problem, it shoing correctly, but when am hardcoding the content, am mot getting correctly instead am getting like this.. whats the problem might me Link to comment https://forums.phpfreaks.com/topic/195176-why-my-font-is-displaying-like-this-%D8%B7%C2%B3%D8%B8%D9%B9%D8%B7/ Share on other sites More sharing options...
phpmady Posted March 14, 2010 Author Share Posted March 14, 2010 Hi, header("Content-Type: text/html; charset=windows-1256"); this is the header am using in file I am using arabic fonts, where i use the encoding type of windows-1256 format, when i fetch the data from the table no problem, it shoing correctly, but when am hardcoding the content, am mot getting correctly instead am getting like this.. whats the problem might me Link to comment https://forums.phpfreaks.com/topic/195176-why-my-font-is-displaying-like-this-%D8%B7%C2%B3%D8%B8%D9%B9%D8%B7/#findComment-1025849 Share on other sites More sharing options...
decpariem Posted March 14, 2010 Share Posted March 14, 2010 try use utf-8 encoding in database and in tables and in php. and add this line mysql_query("SET NAMES 'utf8'"); if it's not working let me know cause i have few more suggestions Link to comment https://forums.phpfreaks.com/topic/195176-why-my-font-is-displaying-like-this-%D8%B7%C2%B3%D8%B8%D9%B9%D8%B7/#findComment-1025902 Share on other sites More sharing options...
phpmady Posted March 14, 2010 Author Share Posted March 14, 2010 try use utf-8 encoding in database and in tables and in php. and add this line mysql_query("SET NAMES 'utf8'"); if it's not working let me know cause i have few more suggestions Hi, can u suggest me any other ways, by using windows1256, help me thank you Link to comment https://forums.phpfreaks.com/topic/195176-why-my-font-is-displaying-like-this-%D8%B7%C2%B3%D8%B8%D9%B9%D8%B7/#findComment-1026011 Share on other sites More sharing options...
decpariem Posted March 18, 2010 Share Posted March 18, 2010 Why use this encoding? Utf-8 is suitable for any language. Can't help you with the other encoding. Sorry Link to comment https://forums.phpfreaks.com/topic/195176-why-my-font-is-displaying-like-this-%D8%B7%C2%B3%D8%B8%D9%B9%D8%B7/#findComment-1028111 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.