

<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: UTF-8,Ruby on Rails under Ubuntu</title>
	<atom:link href="http://blog.rubypdf.com/2006/10/20/utf-8ruby-on-rails-under-ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rubypdf.com/2006/10/20/utf-8ruby-on-rails-under-ubuntu/</link>
	<description>PDF &#38; Marketing</description>
	<lastBuildDate>Tue, 27 Dec 2011 14:41:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Brian Donovan</title>
		<link>http://blog.rubypdf.com/2006/10/20/utf-8ruby-on-rails-under-ubuntu/comment-page-1/#comment-120</link>
		<dc:creator>Brian Donovan</dc:creator>
		<pubDate>Wed, 13 Dec 2006 01:11:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rubypdf.com/2006/10/20/utf-8ruby-on-rails-under-ubuntu/#comment-120</guid>
		<description>I found that this is more generically applicable:

&lt;code&gt;
def set_charset
  content_type = headers[&quot;Content-Type&quot;] &#124;&#124; &#039;text/html&#039;
  if /^text\//.match(content_type)
    headers[&quot;Content-Type&quot;] = &quot;#{content_type}; charset=utf-8&quot; 
  end
  true
end
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I found that this is more generically applicable:</p>
<p><code><br />
def set_charset<br />
  content_type = headers["Content-Type"] || 'text/html'<br />
  if /^text\//.match(content_type)<br />
    headers["Content-Type"] = "#{content_type}; charset=utf-8"<br />
  end<br />
  true<br />
end<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven</title>
		<link>http://blog.rubypdf.com/2006/10/20/utf-8ruby-on-rails-under-ubuntu/comment-page-1/#comment-34</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Tue, 24 Oct 2006 13:05:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rubypdf.com/2006/10/20/utf-8ruby-on-rails-under-ubuntu/#comment-34</guid>
		<description>yes, I used the code in my template, and it work fine.</description>
		<content:encoded><![CDATA[<p>yes, I used the code in my template, and it work fine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hugh</title>
		<link>http://blog.rubypdf.com/2006/10/20/utf-8ruby-on-rails-under-ubuntu/comment-page-1/#comment-33</link>
		<dc:creator>Hugh</dc:creator>
		<pubDate>Tue, 24 Oct 2006 11:18:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rubypdf.com/2006/10/20/utf-8ruby-on-rails-under-ubuntu/#comment-33</guid>
		<description>It should be working, maybe give sqlite3 a go, that works fine for me with the same setup as yours. 

Are you using: 

&lt;code&gt;&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;&lt;/code&gt;

...in your template?</description>
		<content:encoded><![CDATA[<p>It should be working, maybe give sqlite3 a go, that works fine for me with the same setup as yours. </p>
<p>Are you using: </p>
<p><code><meta http-equiv="content-type" content="text/html; charset=utf-8" /></code></p>
<p>&#8230;in your template?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

