PHP ? urlencode
????????? Unicode ??????????????? URL ??,??? URL ???????urlencode
???????????(+),???????????????(%)??????????
??,??????? mb_convert_encoding
? urlencode
?????? Unicode ??????mb_convert_encoding
????? Unicode ??????? URL ??????
???????:
$unicode_string = "??,??!"; $encoded_string = urlencode(mb_convert_encoding($unicode_string, "UTF-8")); echo $encoded_string;
???????? mb_convert_encoding
??? Unicode ?????? UTF-8 ??,???? urlencode
??????? URL ????????? 你好,世界!
,?? Unicode ???? URL ?????