suzie 4 Posted October 20, 2011 Report Share Posted October 20, 2011 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?? 1 Quote Link to post Share on other sites
justsomeguy 1,135 Posted October 20, 2011 Report Share Posted October 20, 2011 See if explicitly encoding the data as UTF8 helps. http://us.php.net/manual/en/function.utf8-encode.php 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.