iT邦幫忙

0

網址轉碼問題

Hi All
當我在FireFox中看到的網址為
http://zh.wikipedia.org/w/index.php?title=灌籃高手&variant=zh-hk
可是當我複製網址後到其他視窗中貼上卻是下列的內容
http://zh.wikipedia.org/w/index.php?title=%E7%81%8C%E7%B1%83%E9%AB%98%E6%89%8B&variant=zh-hk

Q1)請問一下 有哪邊可以找到相關的資訊呢?
Q2)為什麼網址需要轉碼?
Thanks

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

2 個回答

18
pcboy
iT邦大師 6 級 ‧ 2009-05-04 12:31:20
最佳解答

Q1)請問一下 有哪邊可以找到相關的資訊呢?

你用 URLEncode 編碼看看
http://tw2.php.net/urlencode

Q2)為什麼網址需要轉碼?

安全 or 避免語系問題而誤判網址或參數

guess41 iT邦新手 5 級 ‧ 2009-05-07 22:30:27 檢舉
10
eric19740521
iT邦新手 1 級 ‧ 2009-05-05 12:30:46

中文一般都不接受的
http://zh.wikipedia.org/w/index.php?title=灌籃高手&variant=zh-hk
所以建議你不要用中文在理頭
免的轉紙失效

我要發表回答

立即登入回答