Anonymous | Login | Signup for a new account | 12-17-2024 08:28 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0001193 | [Quercus] | minor | always | 06-12-06 12:18 | 06-28-06 19:37 | ||||
Reporter | artem | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | urgent | Resolution | fixed | ||||||
Status | closed | Product Version | 3.0.20 | ||||||
Summary | 0001193: odd behavior in UTF-8 encoding/decoding | ||||||||
Description |
http://localhost:8080/test.php?i=%D0%90 [^] %D0%90 - is UTF-8 encoded Russian A (&0001040;) It shows following text in browser: Ð&0000144; 2 When I check HTML source code it shows:- <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> Ã&0000144;Â&0000144; 2 4 charaters that that encodes of 2 characters:- test.php - source code <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <? echo $_GET['i']; echo " "; echo strlen($_GET['i']); echo " "; ?> |
||||||||
Additional Information |
%D0%90 is ascii Ð&0000144; So PHP parce URL as ascii and return as UTF-8. It is incorrect as form on utf-8 encoded page will post utf-8 encode URLs. PHP must parce URL and return page code in same encoding. It is default behavior of snapshot downloaded from 02/06/2006 |
||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
34 total queries executed. 30 unique queries executed. |