<?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: Talking in tongues &#8211; UTF8 with CodeIgniter</title>
	<atom:link href="http://hash-bang.net/2009/02/utf8-with-codeigniter/feed/" rel="self" type="application/rss+xml" />
	<link>http://hash-bang.net/2009/02/utf8-with-codeigniter/</link>
	<description>The start of all wonderful things</description>
	<lastBuildDate>Thu, 26 Apr 2012 13:44:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Justin</title>
		<link>http://hash-bang.net/2009/02/utf8-with-codeigniter/comment-page-1/#comment-5419</link>
		<dc:creator>Justin</dc:creator>
		<pubDate>Sun, 20 Nov 2011 20:29:04 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=95#comment-5419</guid>
		<description>Legend! This, along with the mods suggested by Lars, solved a major issue I&#039;ve been having with CI.  Thanks.</description>
		<content:encoded><![CDATA[<p>Legend! This, along with the mods suggested by Lars, solved a major issue I&#8217;ve been having with CI.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Heisanevilgenius</title>
		<link>http://hash-bang.net/2009/02/utf8-with-codeigniter/comment-page-1/#comment-5360</link>
		<dc:creator>Heisanevilgenius</dc:creator>
		<pubDate>Mon, 14 Nov 2011 08:28:08 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=95#comment-5360</guid>
		<description>Thank you!</description>
		<content:encoded><![CDATA[<p>Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul Shelar</title>
		<link>http://hash-bang.net/2009/02/utf8-with-codeigniter/comment-page-1/#comment-3449</link>
		<dc:creator>Rahul Shelar</dc:creator>
		<pubDate>Wed, 09 Mar 2011 10:31:22 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=95#comment-3449</guid>
		<description>very nice solution</description>
		<content:encoded><![CDATA[<p>very nice solution</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lars</title>
		<link>http://hash-bang.net/2009/02/utf8-with-codeigniter/comment-page-1/#comment-3081</link>
		<dc:creator>Lars</dc:creator>
		<pubDate>Mon, 20 Dec 2010 13:32:36 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=95#comment-3081</guid>
		<description>hey there,

i added support for objects as well, since you have the possiblity to choose between objects and arrays :)

foreach ($_POST as $key =&gt; $val) // Re-write all incoming text into UTF8 streams
{
    if (is_array($val)) {
        $_POST[$key] = array_map(&quot;utf8_encode&quot;, $val);
    }
    else if (is_object($val))
    {
        foreach($val as $attr =&gt; $value)
           $_POST[$key]-&gt;{$attr} = uft8_encode($value);
    }
    else {
        $_POST[$key] = utf8_encode($val);
    }
}</description>
		<content:encoded><![CDATA[<p>hey there,</p>
<p>i added support for objects as well, since you have the possiblity to choose between objects and arrays :)</p>
<p>foreach ($_POST as $key =&gt; $val) // Re-write all incoming text into UTF8 streams<br />
{<br />
    if (is_array($val)) {<br />
        $_POST[$key] = array_map(&#8220;utf8_encode&#8221;, $val);<br />
    }<br />
    else if (is_object($val))<br />
    {<br />
        foreach($val as $attr =&gt; $value)<br />
           $_POST[$key]-&gt;{$attr} = uft8_encode($value);<br />
    }<br />
    else {<br />
        $_POST[$key] = utf8_encode($val);<br />
    }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bonatoc</title>
		<link>http://hash-bang.net/2009/02/utf8-with-codeigniter/comment-page-1/#comment-2804</link>
		<dc:creator>bonatoc</dc:creator>
		<pubDate>Wed, 28 Jul 2010 00:16:19 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=95#comment-2804</guid>
		<description>Many thanks. I just spent hours trying to fix it, and your helper did the trick.</description>
		<content:encoded><![CDATA[<p>Many thanks. I just spent hours trying to fix it, and your helper did the trick.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peciorin</title>
		<link>http://hash-bang.net/2009/02/utf8-with-codeigniter/comment-page-1/#comment-2795</link>
		<dc:creator>peciorin</dc:creator>
		<pubDate>Tue, 20 Jul 2010 17:50:42 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=95#comment-2795</guid>
		<description>Thanks coolgeek for the array tip : you saved my day.</description>
		<content:encoded><![CDATA[<p>Thanks coolgeek for the array tip : you saved my day.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Francesco</title>
		<link>http://hash-bang.net/2009/02/utf8-with-codeigniter/comment-page-1/#comment-2692</link>
		<dc:creator>Francesco</dc:creator>
		<pubDate>Sun, 02 May 2010 18:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=95#comment-2692</guid>
		<description>Really thank you very much! It&#039;s Great!</description>
		<content:encoded><![CDATA[<p>Really thank you very much! It&#8217;s Great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roarbb</title>
		<link>http://hash-bang.net/2009/02/utf8-with-codeigniter/comment-page-1/#comment-2592</link>
		<dc:creator>roarbb</dc:creator>
		<pubDate>Wed, 20 Jan 2010 01:04:15 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=95#comment-2592</guid>
		<description>Gread advice. Thanks very much. Works great!</description>
		<content:encoded><![CDATA[<p>Gread advice. Thanks very much. Works great!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Serge</title>
		<link>http://hash-bang.net/2009/02/utf8-with-codeigniter/comment-page-1/#comment-2589</link>
		<dc:creator>Serge</dc:creator>
		<pubDate>Sat, 16 Jan 2010 01:08:13 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=95#comment-2589</guid>
		<description>Nice.  Works perfectly.</description>
		<content:encoded><![CDATA[<p>Nice.  Works perfectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: coolgeek</title>
		<link>http://hash-bang.net/2009/02/utf8-with-codeigniter/comment-page-1/#comment-2575</link>
		<dc:creator>coolgeek</dc:creator>
		<pubDate>Tue, 29 Dec 2009 06:56:15 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=95#comment-2575</guid>
		<description>You&#039;ve got a problem here if a $_POST variable is an array.

Try this:

foreach ($_POST as $key =&gt; $val) // Re-write all incoming text into UTF8 streams
	if (is_array($val))
		$_POST[$key] = array_map(&quot;utf8_encode&quot;, $val);
	else
		$_POST[$key] = utf8_encode($val);</description>
		<content:encoded><![CDATA[<p>You&#8217;ve got a problem here if a $_POST variable is an array.</p>
<p>Try this:</p>
<p>foreach ($_POST as $key =&gt; $val) // Re-write all incoming text into UTF8 streams<br />
	if (is_array($val))<br />
		$_POST[$key] = array_map(&#8220;utf8_encode&#8221;, $val);<br />
	else<br />
		$_POST[$key] = utf8_encode($val);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mattonik</title>
		<link>http://hash-bang.net/2009/02/utf8-with-codeigniter/comment-page-1/#comment-2569</link>
		<dc:creator>mattonik</dc:creator>
		<pubDate>Mon, 21 Dec 2009 01:45:09 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=95#comment-2569</guid>
		<description>Thanks for this great helper!</description>
		<content:encoded><![CDATA[<p>Thanks for this great helper!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ross Bates</title>
		<link>http://hash-bang.net/2009/02/utf8-with-codeigniter/comment-page-1/#comment-2492</link>
		<dc:creator>Ross Bates</dc:creator>
		<pubDate>Thu, 26 Nov 2009 15:58:18 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=95#comment-2492</guid>
		<description>Fantastic solution. Works great, thank you!</description>
		<content:encoded><![CDATA[<p>Fantastic solution. Works great, thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rocky</title>
		<link>http://hash-bang.net/2009/02/utf8-with-codeigniter/comment-page-1/#comment-2390</link>
		<dc:creator>Rocky</dc:creator>
		<pubDate>Thu, 22 Oct 2009 01:37:46 +0000</pubDate>
		<guid isPermaLink="false">http://hash-bang.net/?p=95#comment-2390</guid>
		<description>Thanks very much.</description>
		<content:encoded><![CDATA[<p>Thanks very much.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

