<?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>Drumhead Trap &#187; apache</title>
	<atom:link href="http://www.adriansilva.org/tag/apache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.adriansilva.org</link>
	<description>Skins and patches</description>
	<lastBuildDate>Wed, 21 Apr 2010 07:16:05 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Php default charsets</title>
		<link>http://www.adriansilva.org/2009/01/23/php-default-charsets/</link>
		<comments>http://www.adriansilva.org/2009/01/23/php-default-charsets/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 09:29:52 +0000</pubDate>
		<dc:creator>skiold</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[charset]]></category>
		<category><![CDATA[htacces]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[notes]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[visualtis]]></category>

		<guid isPermaLink="false">http://www.adriansilva.org/?p=217</guid>
		<description><![CDATA[Un problema muchas veces repetido cuando no trabajas en ingles y ASCII. No siempre se controla la codificacion que se usa en distintos entornos de trabajo y produccion; al final acaban apareciendo caracteres extraños y problemas de codificacion.
Working with many development and production some people forgets to check their default charsets; in the end encoding [...]]]></description>
			<content:encoded><![CDATA[<p>Un problema muchas veces repetido cuando no trabajas en ingles y ASCII. No siempre se controla la codificacion que se usa en distintos entornos de trabajo y produccion; al final acaban apareciendo caracteres extraños y problemas de codificacion.</p>
<p>Working with many development and production some people forgets to check their default charsets; in the end encoding mismatchs crawl. I&#8217;ve seen a few programmers falling in this trap.</p>
<p>Last time our php was Latin-1 encoded and the production Apache server used Utf-8 by default. In a shared hosting environments the default encoding can be set from the .htaccess file:</p>
<blockquote><p>AddCharset ISO-8859-1 .php<br />
AddDefaultCharset ISO-8859-1</p></blockquote>
<p>Same thing <a href="http://www.w3.org/International/O-HTTP-charset">from php</a>:</p>
<blockquote><p>PHP. Use the header() function before generating any content, e.g.:<br />
header(&#8217;Content-type: text/html; charset=utf-8&#8242;);</p></blockquote>
<p>Links and discussion:</p>
<ul>
<li>Basics on <a href="http://www.w3.org/International/O-HTTP-charset">http charset parameter</a> at w3c.</li>
<li><a href="http://www.w3.org/International/questions/qa-htaccess-charset">Apache .htacces</a> usage.</li>
<li>Handy list of <a href="http://www.iana.org/assignments/character-sets">IANA accepted encoding names</a> recognized by apache.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.adriansilva.org/2009/01/23/php-default-charsets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
