<?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>kodkultur &#187; UTF8</title>
	<atom:link href="http://www.kodkultur.org/category/utf8/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kodkultur.org</link>
	<description>livet bakom skärmen</description>
	<lastBuildDate>Mon, 31 Aug 2009 09:19:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using Text::IConv or Unicode::String? Converting UTF8 to ISO-Latin1 in Perl.</title>
		<link>http://www.kodkultur.org/2006/08/17/using-texticonv-or-unicodestring-converting-utf8-to-iso-latin1-in-perl/</link>
		<comments>http://www.kodkultur.org/2006/08/17/using-texticonv-or-unicodestring-converting-utf8-to-iso-latin1-in-perl/#comments</comments>
		<pubDate>Thu, 17 Aug 2006 15:00:15 +0000</pubDate>
		<dc:creator>Christian Bolstad</dc:creator>
				<category><![CDATA[Internationalization]]></category>
		<category><![CDATA[UTF8]]></category>
		<category><![CDATA[i18n]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://kodkultur.org/2006/08/17/using-texticonv-or-unicodestring-converting-utf8-to-iso-latin1-in-perl/</guid>
		<description><![CDATA[For quite a while I&#8217;ve been stuck in a project in which I read some some data from a set of XML-files generated from an external program. The data loading smoothly done by XML::Simple, but the fact that the target is a mysql database with ISO-8859-1 (ISO-Latin1) while the XML is encoded in UTF-8 has [...]]]></description>
			<content:encoded><![CDATA[<p>For quite a while I&#8217;ve been stuck in a project in which I read some some data from a set of XML-files generated from an external program. The data loading smoothly done by <a target="_blank" href="http://search.cpan.org/dist/XML-Simple/">XML::Simple</a>, but the fact that the target is a mysql database with <a target="_blank" href="http://en.wikipedia.org/wiki/ISO-8859-1">ISO-8859-1</a> (ISO-Latin1) while the XML is encoded in <a target="_blank" href="http://en.wikipedia.org/wiki/UTF8">UTF-8</a> has caused a few problems.</p>
<p>Perl doesn&#8217;t AFAIK come with any really good convertion routines with the standard modules, and since I was somewhat familiar with the GNU-projects <a target="_blank" href="http://www.gnu.org/software/libiconv/">libiconv</a> it come naturally too look after a perl module that uses it.  After a quick search, Text::Iconv was found on <a target="_blank" href="http://www.cpan.org/">CPAN</a></p>
<p>However I quickly ran into a few problems: Text::Iconv is only as portable as it libiconv &#8211; and just having a binary dependency is a hassle when moving between alot of platforms. <a target="_blank" href="http://search.cpan.org/dist/Text-Iconv/">Text::Iconv</a> also had some of libiconvs strange behaviour and very limited error handling. Sometimes the converted text was streal strange and I has not been very statisfied.</p>
<p>Today I stumbled upon <a target="_blank" href="http://search.cpan.org/dist/Unicode-String/">Unicode::String</a> that smoothly convert between utf-8 and differenet charsets. The potential of supported charsets is less than libiconvs &#8211; but since it got ISO-Latin1 I am all happy. After a test round I replaced all convertion calls and so far I have not noticed any real performance drain and no problems at all &#8211; as of yet.</p>
<p>CPAN <3</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kodkultur.org/2006/08/17/using-texticonv-or-unicodestring-converting-utf8-to-iso-latin1-in-perl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
