I have the following code:
$sql = "update tbl_test set category = N'resumé'; echo $sql; $rs=odbc_exec($conn,$sql);
Where $ conn is the ODBC connection for DSN with the MSSQL server. The problem is that somewhere between PHP and MySQL (maybe ODBC?), Unicode characters are converted to unwanted ones. If I copy paste what the echo says directly in Enterprise Manager, it inserts a fine in MS SQL. However, if I run the code, it always goes into MSSSQL as resumà ©. Any idea what I'm missing here?
php unicode odbc
catbelly
source share