<?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>ReadyState4 &#187; Character Encoding</title>
	<atom:link href="http://readystate4.com/category/character-encoding/feed/" rel="self" type="application/rss+xml" />
	<link>http://readystate4.com</link>
	<description>JavaScript, Web Development, Ruby, and Technology.</description>
	<lastBuildDate>Fri, 18 May 2012 06:14:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Character encoding</title>
		<link>http://readystate4.com/2008/06/27/character-encoding/</link>
		<comments>http://readystate4.com/2008/06/27/character-encoding/#comments</comments>
		<pubDate>Fri, 27 Jun 2008 17:44:29 +0000</pubDate>
		<dc:creator>Mauvis</dc:creator>
				<category><![CDATA[Character Encoding]]></category>
		<category><![CDATA[Internationalization]]></category>

		<guid isPermaLink="false">http://readystate4.com/2008/06/27/character-encoding/</guid>
		<description><![CDATA[I always forget that when you change the character encoding of a webpage (say from ISO-8859-1 to UTF-8 or UTF-16) that you also have to change the character encoding of the actual file. We were having an issue today while working on internationalization where we properly configured our server to spit out UTF16 pages but [...]]]></description>
			<content:encoded><![CDATA[<p>I always forget that when you change the character encoding of a webpage (say from ISO-8859-1 to UTF-8 or UTF-16) that you also have to change the character encoding of the actual file.</p>
<p>We were having an issue today while working on internationalization where we properly configured our server to spit out UTF16 pages but all the external JavaScript and CSS were rendering out Chinese characters. We racked our brains for awhile until we realized the external files were saved with a text-file encoding of ISO-8859-1. Manually converting a thousand plus files to a different character set would have taken ages luckily, one of our other web devs, Bryan, found out that you could automate this via unix command line (piconv). Rejoice!</p>
<p>As an added note, be aware that switching from a single byte character set like  ISO-8859-1 to a double-byte like UTF-16 will double your file size. Thankfully gzipping your files makes this final file size increase much more palatable.</p>
]]></content:encoded>
			<wfw:commentRss>http://readystate4.com/2008/06/27/character-encoding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

