Jump to content

Language Problem


Recommended Posts

Dear Friends,I created a database using MSSQL server.Arabic data in the tables appears normally and readable. types are Unicode (ntext, nchar,..)when retreiving the Arabic data using PHP files with(charset="utf-8") it appears as questions mark ?????????????????. <!DOCTYPE html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body><?php$qry = "SELECT priority ,title_first FROM main where priority=1"; if($r=odbc_exec($sqlconnect, $qry)) while($row=odbc_fetch_row($r)) { $title = odbc_result($r,"title_first"); echo $title; } ?></body></html> the result of $title is question marks..????? when replacing charset=utf-8 by charset=windows-1256 the arabic data appears normally but I need to use charset=utf-8 So please very urgent any help??

  • Like 1
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.

Guest
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.

Loading...
×
×
  • Create New...