<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Alvarofagner&#039;s Blog</title>
	<atom:link href="http://alvarofagner.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://alvarofagner.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Tue, 26 May 2009 16:33:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='alvarofagner.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Alvarofagner&#039;s Blog</title>
		<link>http://alvarofagner.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://alvarofagner.wordpress.com/osd.xml" title="Alvarofagner&#039;s Blog" />
	<atom:link rel='hub' href='http://alvarofagner.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Discovering the string encoding in python</title>
		<link>http://alvarofagner.wordpress.com/2009/05/26/discovering-the-string-encoding-in-python/</link>
		<comments>http://alvarofagner.wordpress.com/2009/05/26/discovering-the-string-encoding-in-python/#comments</comments>
		<pubDate>Tue, 26 May 2009 16:33:32 +0000</pubDate>
		<dc:creator>alvarofagner</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://alvarofagner.wordpress.com/?p=3</guid>
		<description><![CDATA[Hello All, I had a situation on the project that I&#8217;m working in wich I had to find in what encoding a certain string were in python. I looked for this on the net, but I didn&#8217;t find it. Rodrigo Belem gave me a help and we found how do it. Then I decided to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alvarofagner.wordpress.com&amp;blog=7908620&amp;post=3&amp;subd=alvarofagner&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello All,</p>
<p>I had a situation on the project that I&#8217;m working in wich I had to find in what encoding a certain string were in python. I looked for this on the net, but I didn&#8217;t find it. Rodrigo Belem gave me a help and we found how do it. Then I decided to blog it here.</p>
<p>So, just use the following method to discover the encoding of the string &#8220;s&#8221; in python:</p>
<p><code><br />
def mydecode(s, encodings=('ascii', 'utf-8', 'latin1')):<br />
     for encoding in encodings:<br />
         try:<br />
              s.decode(encoding)<br />
              return encoding<br />
         except UnicodeDecodeError:<br />
              pass<br />
</code></p>
<p>I hope you enjoy it!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alvarofagner.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alvarofagner.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alvarofagner.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alvarofagner.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alvarofagner.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alvarofagner.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alvarofagner.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alvarofagner.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alvarofagner.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alvarofagner.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alvarofagner.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alvarofagner.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alvarofagner.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alvarofagner.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alvarofagner.wordpress.com&amp;blog=7908620&amp;post=3&amp;subd=alvarofagner&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alvarofagner.wordpress.com/2009/05/26/discovering-the-string-encoding-in-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d07ffa392a8d8fe93027b62d85373dfa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alvarofagner</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://alvarofagner.wordpress.com/2009/05/26/hello-world/</link>
		<comments>http://alvarofagner.wordpress.com/2009/05/26/hello-world/#comments</comments>
		<pubDate>Tue, 26 May 2009 16:03:33 +0000</pubDate>
		<dc:creator>alvarofagner</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alvarofagner.wordpress.com&amp;blog=7908620&amp;post=1&amp;subd=alvarofagner&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/alvarofagner.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/alvarofagner.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/alvarofagner.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/alvarofagner.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/alvarofagner.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/alvarofagner.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/alvarofagner.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/alvarofagner.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/alvarofagner.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/alvarofagner.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/alvarofagner.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/alvarofagner.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/alvarofagner.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/alvarofagner.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=alvarofagner.wordpress.com&amp;blog=7908620&amp;post=1&amp;subd=alvarofagner&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://alvarofagner.wordpress.com/2009/05/26/hello-world/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d07ffa392a8d8fe93027b62d85373dfa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">alvarofagner</media:title>
		</media:content>
	</item>
	</channel>
</rss>
