Revision: 12293
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 9, 2009 15:06 by tamuratetsuya
Initial Code
# -*- coding: utf-8; -*- import urllib print urllib.quote('ã„ã‚ã¯ã«ã»ã¸ã¨') print urllib.quote(u'ã„ã‚ã¯ã«ã»ã¸ã¨'.encode('euc-jp')) print urllib.quote(u'ã„ã‚ã¯ã«ã»ã¸ã¨'.encode('shift_jis')) print urllib.quote(u'ã„ã‚ã¯ã«ã»ã¸ã¨'.encode('iso-2022-jp')) print urllib.quote(u'ã„ã‚ã¯ã«ã»ã¸ã¨') print urllib.unquote('%E3%81%84%E3%82%8D%E3%81%AF%E3%81%AB%E3%81%BB%E3%81%B8%E3%81%A8')
Initial URL
http://python.g.hatena.ne.jp/mhrs/20060609/p1
Initial Description
Initial Title
URIエンコードã¨ãƒ‡ã‚³ãƒ¼ãƒ‰ã«ã¯urllibモジュールã®quote()ã¨unquote()ãŒä½¿ã¸ã‚‹
Initial Tags
python, django
Initial Language
Python