suzie 4 Posted August 16, 2011 Report 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 Quote Link to post Share on other sites
justsomeguy 1,135 Posted August 16, 2011 Report 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. Quote Link to post Share on other sites
suzie 4 Posted August 17, 2011 Author Report 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???? Quote Link to post Share on other sites
justsomeguy 1,135 Posted August 17, 2011 Report 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. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.