把中文URL進行編碼: echo urlencode("中文");//%E4%B8%AD%E6%96%87 把轉碼後的URL轉換回中文: echo urldecode("%E4%B8%AD%E6%96%87");//中文