Jump to content

Language Problem


suzie

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??

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...