<?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>EsPractico.com &#187; PHP</title>
	<atom:link href="http://espractico.com/site/category/codigo/php/feed" rel="self" type="application/rss+xml" />
	<link>http://espractico.com/site</link>
	<description>Aprende en el web de forma práctica.</description>
	<lastBuildDate>Sun, 18 Apr 2010 22:18:35 +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>Salvando Archivos UTF8 con PHP</title>
		<link>http://espractico.com/site/codigo/php/salvando_utf8_con_php.html</link>
		<comments>http://espractico.com/site/codigo/php/salvando_utf8_con_php.html#comments</comments>
		<pubDate>Sat, 15 Nov 2008 22:21:21 +0000</pubDate>
		<dc:creator>Rodrigo Polo</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.espractico.com/site/?p=109</guid>
		<description><![CDATA[Haciendo un pequeño script PHP pude ver que no había posibilidad de usar la función “file_put_contents()” para guardar archivos de texto codificados UTF8 así que luego de investigar un poco encontré la solución:
Código NO FUNCIONAL
$my_data = utf8_encode(&#8216;My Text&#8217;);
file_put_contents(&#8220;plain_utf8.txt&#8221;, $my_data);
Código 100% Funcional
// Aquí declaro mi funcion para guardar textos en UTF8
function file_put_contents_utf8($file,$data){
$utfdata=&#8221;\xEF\xBB\xBF&#8221;.$data;
file_put_contents($file, $utfdata);
}
//y aquí salvo mi [...]]]></description>
		<wfw:commentRss>http://espractico.com/site/codigo/php/salvando_utf8_con_php.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
