0
$sql="SELECT * FROM customers";

if ($conn_id=odbc_connect("testconn","user1","user1")){
  echo "connected to DSN: $dsn <br>";

  if($result=odbc_do($conn_id, $sql)){
  }
}

I have a database which is utf-8,I am using the below PHP code,it is not displaying the Chinese character.I have tried with other ODBC clients,connecting to same odbc datasource and they are able to display Chinese character.I have tried suggestion mentioned here But still I am not able to display Chinese character

Xorifelse
  • 7,878
  • 1
  • 27
  • 38

1 Answers1

0

it's not a php problem. add this in the head tag of your HTML

<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  • It can be PHP header, database connection, database-tables, etc... Could be a number of things, most likely something with PHP or the database. – Qirel Mar 08 '17 at 16:20