|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-11-09 12:54 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 13:00:01 2025 UTC |
Description: ------------ I am from Hong Kong, and I have to use multibyte character I use Access database and in the database I insert string in the database (Hex)A7DA9068 (This is 4 bytes, A7, DA, 90, 68 in Hex, I think you cannot see the character, so I type in hex) I use odbc_result to get this string, however I cannot get the correct result!! I use strlen to get the length of the result, it is also wrong!! Reproduce code: --------------- $Database = odbc_connect("Database", "", ""); $Recordset = odbc_exec($Database, "SELECT * FROM YCDatabase"); odbc_result($Recordset, "Address") odbc_close($Database); Expected result: ---------------- In the example of description, the expected result is A7DA9068 (Hex) Actual result: -------------- A7DA3F (Hex, a ? instead of 9068)