skip to main
|
skip to sidebar
Larry Dot Yellow
Nothing special about me. Love programming.
2010年6月13日 星期日
encode url string in python (big5 to utf-8)
import urllib
keyword_term = '我是一隻魚'
encode_term = urllib.quote(keyword_term.decode('big5').encode('utf8'))
在winXP 中文版環境 測試
只測試過中文big5字串而已,其他語言就不確定囉~
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
網誌存檔
▼
2010
(2)
▼
6月
(2)
No Arms No Legs No Worries
encode url string in python (big5 to utf-8)
►
2008
(1)
►
2月
(1)
關於我自己
Larry The Big
檢視我的完整簡介
沒有留言:
張貼留言