<?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/"
	>

<channel>
	<title>SimonOnSoftware &#187; utf</title>
	<atom:link href="http://simononsoftware.com/tag/utf/feed/" rel="self" type="application/rss+xml" />
	<link>http://simononsoftware.com</link>
	<description>programming, databases and other IT something</description>
	<lastBuildDate>Sun, 15 Aug 2010 14:05:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Python And Unicode&#8230; What a Crap</title>
		<link>http://simononsoftware.com/python-and-unicode-what-a-crap/</link>
		<comments>http://simononsoftware.com/python-and-unicode-what-a-crap/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 18:44:09 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[wtf]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[unicode]]></category>
		<category><![CDATA[utf]]></category>

		<guid isPermaLink="false">http://www.simononsoftware.com/?p=697</guid>
		<description><![CDATA[I was trying to implement something really simple in Python. I wrote a simple script&#8230; and there were some errors. Well, after a small research I found that simple len() function doesn&#8217;t count unicode characters but count bytes in unicode string. What a crap.

Example:
&#62;&#62;&#62; string = 'lksfwioerx'
&#62;&#62;&#62; unicode = 'łóąśćńżźłę'
&#62;&#62;&#62; len(string)
10
&#62;&#62;&#62; len(unicode)
20
Another funny thing is [...]


<strong>Related posts:</strong><ol><li><a href='http://simononsoftware.com/naming-convention-aka-php-vs-python/' rel='bookmark' title='Permanent Link: Naming Convention aka PHP vs Python'>Naming Convention aka PHP vs Python</a> <small>Is Python really better than PHP? I doubt, and in...</small></li>
<li><a href='http://simononsoftware.com/what-i-dont-like-about-python/' rel='bookmark' title='Permanent Link: What I Don&#8217;t Like About Python'>What I Don&#8217;t Like About Python</a> <small>Python &#8211; maybe you know &#8211; is a computer language...</small></li>
<li><a href='http://simononsoftware.com/trying-to-use-database-in-python/' rel='bookmark' title='Permanent Link: Trying to Use Database in Python'>Trying to Use Database in Python</a> <small>Why the f**** there is nothing like DBI in Python?...</small></li>
</ol>]]></description>
		<wfw:commentRss>http://simononsoftware.com/python-and-unicode-what-a-crap/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
