<?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>Quenerapú &#187; utf-8</title>
	<atom:link href="http://quenerapu.com/etiquetas/utf-8/feed/" rel="self" type="application/rss+xml" />
	<link>http://quenerapu.com</link>
	<description>Sentado delante de un ordenador desde 1982. ¿De qué voy a hablar, si no?</description>
	<lastBuildDate>Mon, 02 Aug 2010 14:22:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>UTF-8 a minúsculas o mayúsculas</title>
		<link>http://quenerapu.com/php/utf-8-minusculas-mayusculas/</link>
		<comments>http://quenerapu.com/php/utf-8-minusculas-mayusculas/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 05:03:31 +0000</pubDate>
		<dc:creator>Quenerapú</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[función]]></category>
		<category><![CDATA[mayúsculas]]></category>
		<category><![CDATA[minúsculas]]></category>
		<category><![CDATA[utf-8]]></category>

		<guid isPermaLink="false">http://quenerapu.local/?p=15</guid>
		<description><![CDATA[Una pequeña función que convierte una cadena de texto UTF-8 a minúsculas o mayúsculas sin que tildes o eñes se resientan por ello.]]></description>
			<content:encoded><![CDATA[<p>Esta función convierte una cadena de texto en formato UTF-8 a minúsculas o mayúsculas sin que las tildes o las eñes se resientan por ello.</p>
<pre class="brush: php;">
&lt;?php
function utfChCase($s,$u=false)
	{
	$s=utf8_decode($s);
	$s=$u?strtoupper($s):strtolower($s);
	$s=utf8_encode($s);
	return $s;
	}
?&gt;
</pre>
<p>Así, para hacer minúsculas:</p>
<pre class="brush: php;">
&lt;?= utfChCase(&quot;Hola&quot;); ?&gt;
</pre>
<p>Y para hacer mayúsculas:</p>
<pre class="brush: php;">
&lt;?= utfChCase(&quot;Hola&quot;,true); ?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://quenerapu.com/php/utf-8-minusculas-mayusculas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
