suzie Posted August 16, 2011 Share Posted August 16, 2011 Dear Friends,I created a database using MSSQL server with collation name:SQL_latin1_Genaral_CP1_CI_AS, and the tables with data types starting with n (ex: ntext, nvarchar...) because the data in the table is in Arabic. the arabic is appearing normally and readable in the tables.but when retreiving the Arabic using PHP with html header:<meta http-equiv="Content-Type" content="text/html; charset=utf-8">the arabic data it appears as questions mark ?????????????????.Please any suggestions,I need Help....Thanks a lot and Regards Link to comment Share on other sites More sharing options...
justsomeguy Posted August 16, 2011 Share Posted August 16, 2011 Check to see if the server is sending the encoding in the content type, and also make sure your PHP file is actually saved using UTF-8. You can also send a content type header yourself using PHP. Link to comment Share on other sites More sharing options...
suzie Posted August 17, 2011 Author Share Posted August 17, 2011 Thanks a lot for your reply, the html page(frontpage.php, charset-utf8) is done in html, that contains arabic data coming from another page called "newslist.php"I set the header in newslist.php " header("Content-type: text/html; charset=utf-8"); " still the arabic data appears as questions mark,when I set it to: "header("Content-type: text/html; charset=windows-1256");" it works well...Is it a mtter if the transaction between the pages is done in windows-1256, and the frontpage is in UTF-8??because we need that the site be in UTF-8...How can I check if the server is sending the encoding in the content type???? Link to comment Share on other sites More sharing options...
justsomeguy Posted August 17, 2011 Share Posted August 17, 2011 You can use a tool like Firebug or Fiddler to check the response from the server, which will include the headers. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.