Mantis Bugtracker
  

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

- Relationships

- Notes
(0001352)
ferg
06-28-06 19:37

php/0802
 

- Issue History
Date Modified Username Field Change
06-12-06 12:18 artem New Issue
06-12-06 12:44 sam Priority normal => urgent
06-28-06 19:37 ferg Note Added: 0001352
06-28-06 19:37 ferg Assigned To  => ferg
06-28-06 19:37 ferg Status new => closed
06-28-06 19:37 ferg Resolution open => fixed
06-28-06 19:37 ferg Fixed in Version  => 3.0.20
06-21-07 22:25 jr_rajan Issue Monitored: jr_rajan


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
34 total queries executed.
30 unique queries executed.
Powered by Mantis Bugtracker