<?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>Jontas &#187; AddDefaultCharset</title>
	<atom:link href="http://www.f15ijp.com/tag/adddefaultcharset/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.f15ijp.com</link>
	<description>My digital notepad (notes etc)</description>
	<lastBuildDate>Wed, 28 Dec 2011 18:24:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Apache2 unseting AddDefaultCharset (via .htaccess)</title>
		<link>http://www.f15ijp.com/2010/07/27/apache2-unseting-adddefaultcharset-via-htaccess/</link>
		<comments>http://www.f15ijp.com/2010/07/27/apache2-unseting-adddefaultcharset-via-htaccess/#comments</comments>
		<pubDate>Tue, 27 Jul 2010 11:19:35 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Apache2]]></category>
		<category><![CDATA[AddDefaultCharset]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[charset]]></category>
		<category><![CDATA[encoding]]></category>

		<guid isPermaLink="false">http://www.f15ijp.com/?p=561</guid>
		<description><![CDATA[Setting a default charset using .htaccess is a simple thing to do However sometimes there is a need to unset default charset as well (for instance if the AddDefaultCharset is set in the apache config and this is causing problems). This is very easy to do just edit the .htaccess file and add a line [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.f15ijp.com/2010/01/14/apache2-changing-charset-using-htaccess/">Setting a default charset using .htaccess is a simple thing to do</a></p>
<p>However sometimes there is a need to unset default charset as well (for instance if the AddDefaultCharset is set in the apache config and this is causing problems).</p>
<p>This is very easy to do just edit the .htaccess file and add a line that says</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">AddDefaultCharset</span> <span style="color: #0000ff;">OFF</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/07/27/apache2-unseting-adddefaultcharset-via-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache2 changing charset using .htaccess</title>
		<link>http://www.f15ijp.com/2010/01/14/apache2-changing-charset-using-htaccess/</link>
		<comments>http://www.f15ijp.com/2010/01/14/apache2-changing-charset-using-htaccess/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 13:05:07 +0000</pubDate>
		<dc:creator>jontas</dc:creator>
				<category><![CDATA[Apache2]]></category>
		<category><![CDATA[AddDefaultCharset]]></category>
		<category><![CDATA[AddType]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[charset]]></category>
		<category><![CDATA[encoding]]></category>
		<category><![CDATA[mime-type]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[utf-8]]></category>

		<guid isPermaLink="false">http://f15ijp.com/?p=145</guid>
		<description><![CDATA[If you do not wish to change character encoding for the entire server, but only one site (or only one directory) then this is possible to do using .htaccess. AddDefaultCharset UTF-8 If you only wish to do this to php or htm files (and not all files) &#60;FilesMatch &#34;\.(htm&#124;php)$&#34;&#62; AddDefaultCharset UTF-8 &#60;/FilesMatch&#62; If you wish [...]]]></description>
			<content:encoded><![CDATA[<p>If you do not wish to change character encoding for the entire server, but only one site (or only one directory) then this is possible to do using .htaccess.</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">AddDefaultCharset</span> UTF-<span style="color: #ff0000;">8</span></pre></div></div>

<p>If you only wish to do this to php or htm files (and not all files)</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;">&lt;<span style="color: #000000; font-weight:bold;">FilesMatch</span> <span style="color: #7f007f;">&quot;<span style="color: #000099; font-weight: bold;">\.</span>(htm|php)$&quot;</span>&gt;
<span style="color: #00007f;">AddDefaultCharset</span> UTF-<span style="color: #ff0000;">8</span>
&lt;/<span style="color: #000000; font-weight:bold;">FilesMatch</span>&gt;</pre></div></div>

<p>If you wish to modify the mime-type as well as the encoding (on html files in this example)</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">AddType</span> <span style="color: #7f007f;">'text/html; charset=UTF-8'</span> html</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.f15ijp.com/2010/01/14/apache2-changing-charset-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

