Jump to content

Encoding problem

Recommended Posts

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 post
Share on other sites

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...