A
Alont
I use a "CGI_Lite" module to decode a url included chinese
character(gb2312) but it's result is some bad code,
use CGI_Lite;
$cgi = new CGI_Lite;
$cgi->set_platform ($Windows);
$string=
"http://www.google.com/search?sourceid=navclient&hl=zh-CN&ie=UTF-8&q=在线词典";
$decoded_string = url_decode ($string);
print $decoded_string;
the result:
http://www.google.com/search?sourceid=navclient&hl=zh-CN&ie=UTF-8&q=在线è¯å…¸
character(gb2312) but it's result is some bad code,
use CGI_Lite;
$cgi = new CGI_Lite;
$cgi->set_platform ($Windows);
$string=
"http://www.google.com/search?sourceid=navclient&hl=zh-CN&ie=UTF-8&q=在线词典";
$decoded_string = url_decode ($string);
print $decoded_string;
the result:
http://www.google.com/search?sourceid=navclient&hl=zh-CN&ie=UTF-8&q=在线è¯å…¸