suzie Posted October 20, 2011 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?? Link to comment Share on other sites More sharing options...
justsomeguy Posted October 20, 2011 Share Posted October 20, 2011 See if explicitly encoding the data as UTF8 helps. http://us.php.net/manual/en/function.utf8-encode.php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.