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

前端 未结 3 1949
春和景丽
春和景丽 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:15

    If you are on Windows and running PHP 5.3, using PDO_ODBC with SQL Native Client, and your input text is UTF-8, this should just work automatically.

提交回复
热议问题