I have tried for hours and cannot figure out how to insert a UTF-8 value into a SAP HANA database.
Is there some magic way to insert UTF-8 into HANA?
Instead of the actual UTF-8 string it inserts the utf8_encoded value 'å°è伿¥æéå¬å¸'. But the string is already UTF-8.
$conn=odbc_pconnect("Driver=/usr/sap/hdbclient/libodbcHDB.so;
ServerNode=$servernode;Database=$database;DriverUnicodeType=1", $username, $pass, SQL_CUR_USE_ODBC);
$q="update mytable set native_name='專藝企業有限公司' where id=1234";
$ok=odbc_do($conn,$q);