Anonymous | Login | Signup for a new account | 12-17-2024 11:32 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0003203 | [Quercus] | minor | always | 12-29-08 12:15 | 01-03-09 13:43 | ||||
Reporter | nam | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | high | Resolution | fixed | Platform | |||||
Status | closed | OS | |||||||
Projection | none | OS Version | |||||||
ETA | none | Fixed in Version | 4.0.0 | Product Version | 4.0.0 | ||||
Product Build | |||||||||
Summary | 0003203: SET NAMES 'utf-8', VARCHAR string truncation | ||||||||
Description |
(rep by M. Schmidt) <?php $db = mysql_connect(); mysql_query("CREATE DATABASE test"); mysql_select_db("test"); mysql_query("DROP TABLE test"); mysql_query("CREATE TABLE test (a VARCHAR(10), b BLOB(10))"); mysql_query("SET NAMES 'utf8'"); mysql_query("INSERT INTO test VALUES ('\xC2\xA2', '\xC2\xA2')"); $result = mysql_query("SELECT * FROM test"); $array = mysql_fetch_assoc($result); var_dump(bin2hex($array["a"])); var_dump(bin2hex($array["b"])); ?> results: string(2) "a2" string(4) "c2a2" expected results: string(4) "c2a2" string(4) "c2a2" |
||||||||
Steps To Reproduce | |||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |