<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Python Url Encoding</title>
	<atom:link href="http://blog.affien.com/archives/2005/06/25/python-url-encoding/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.affien.com/archives/2005/06/25/python-url-encoding/</link>
	<description>A few thoughts</description>
	<lastBuildDate>Tue, 22 Nov 2011 21:50:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Sven</title>
		<link>http://blog.affien.com/archives/2005/06/25/python-url-encoding/comment-page-1/#comment-178391</link>
		<dc:creator>Sven</dc:creator>
		<pubDate>Tue, 19 May 2009 21:02:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/?p=102#comment-178391</guid>
		<description>Thanks for this code snippet. On my device a don&#039;t have urllib, thus your approach saved my day :-)</description>
		<content:encoded><![CDATA[<p>Thanks for this code snippet. On my device a don&#8217;t have urllib, thus your approach saved my day <img src='http://blog.affien.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rgz</title>
		<link>http://blog.affien.com/archives/2005/06/25/python-url-encoding/comment-page-1/#comment-178390</link>
		<dc:creator>rgz</dc:creator>
		<pubDate>Mon, 18 May 2009 06:25:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/?p=102#comment-178390</guid>
		<description>import urllib
urlencode = lambda s: urllib.urlencode({&#039;x&#039;: s})[2:]
assert urlencode(&quot;foo bar baz&quot;) == &quot;foo+bar+baz&quot;</description>
		<content:encoded><![CDATA[<p>import urllib<br />
urlencode = lambda s: urllib.urlencode({&#8216;x&#8217;: s})[2:]<br />
assert urlencode(&#8220;foo bar baz&#8221;) == &#8220;foo+bar+baz&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: weber</title>
		<link>http://blog.affien.com/archives/2005/06/25/python-url-encoding/comment-page-1/#comment-178377</link>
		<dc:creator>weber</dc:creator>
		<pubDate>Thu, 19 Mar 2009 18:50:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/?p=102#comment-178377</guid>
		<description></description>
		<content:encoded><![CDATA[<p>urlib mothed as follows:</p>
<p>st = st.encode(’gb2312?)<br />
m = {’par’:st,}<br />
s = urllib.urlencode(m)<br />
print s</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Wesselius</title>
		<link>http://blog.affien.com/archives/2005/06/25/python-url-encoding/comment-page-1/#comment-150122</link>
		<dc:creator>Peter Wesselius</dc:creator>
		<pubDate>Thu, 09 Aug 2007 09:27:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/?p=102#comment-150122</guid>
		<description>Your UrlEncode function can be refactored:

def UrlEncode(s):
    r = &#039;&#039;
    for c in s:
        if c in HexCharacters:
            o = ord(c)
            r += &#039;%&#039; + CleanCharHex(c)
        else:
            r += c
    return r</description>
		<content:encoded><![CDATA[<p>Your UrlEncode function can be refactored:</p>
<p>def UrlEncode(s):<br />
    r = &#8221;<br />
    for c in s:<br />
        if c in HexCharacters:<br />
            o = ord(c)<br />
            r += &#8216;%&#8217; + CleanCharHex(c)<br />
        else:<br />
            r += c<br />
    return r</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bas Westerbaan</title>
		<link>http://blog.affien.com/archives/2005/06/25/python-url-encoding/comment-page-1/#comment-918</link>
		<dc:creator>Bas Westerbaan</dc:creator>
		<pubDate>Tue, 19 Jul 2005 11:51:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/?p=102#comment-918</guid>
		<description>Thanks! Seems I missed that one. I guess the name &#039;quote&#039; was picked a bit awquardly.</description>
		<content:encoded><![CDATA[<p>Thanks! Seems I missed that one. I guess the name &#8216;quote&#8217; was picked a bit awquardly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard</title>
		<link>http://blog.affien.com/archives/2005/06/25/python-url-encoding/comment-page-1/#comment-917</link>
		<dc:creator>Richard</dc:creator>
		<pubDate>Tue, 19 Jul 2005 10:46:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.w-nz.com/?p=102#comment-917</guid>
		<description>Try the quote public method in the urllib module.</description>
		<content:encoded><![CDATA[<p>Try the quote public method in the urllib module.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

