Inserting Unicode characters with PHP -> ODBC -> MS SQL?

前端 未结 3 1948
春和景丽
春和景丽 2021-01-18 17:43

I have the following code:

$sql = \"update tbl_test set category = N\'resumé\';

echo $sql;

$rs=odbc_exec($conn,$sql);

Where $conn is a DS

3条回答
  •  情话喂你
    2021-01-18 18:25

    The problem was not ODBC, but PHP... solution was to use utf8_decode() on the strings returned from the database.

提交回复
热议问题