<?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: Working with UTF-8 in PDF::Writer and Ruby on Rails</title>
	<atom:link href="http://www.peterkrantz.com/2007/utf8-in-pdf-writer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.peterkrantz.com/2007/utf8-in-pdf-writer/</link>
	<description>A blog about technology, visualization, music and unmanned vehicle experiments</description>
	<lastBuildDate>Tue, 20 Jul 2010 05:03:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Guillaume</title>
		<link>http://www.peterkrantz.com/2007/utf8-in-pdf-writer/comment-page-1/#comment-2565</link>
		<dc:creator>Guillaume</dc:creator>
		<pubDate>Thu, 18 Jun 2009 17:25:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterkrantz.com/2007/utf8-in-pdf-writer/#comment-2565</guid>
		<description>Thank you very much :-)</description>
		<content:encoded><![CDATA[<p>Thank you very much :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: fguillen</title>
		<link>http://www.peterkrantz.com/2007/utf8-in-pdf-writer/comment-page-1/#comment-2560</link>
		<dc:creator>fguillen</dc:creator>
		<pubDate>Thu, 28 May 2009 12:48:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterkrantz.com/2007/utf8-in-pdf-writer/#comment-2560</guid>
		<description>Just what I needed :).. it works!</description>
		<content:encoded><![CDATA[<p>Just what I needed :).. it works!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Kroes</title>
		<link>http://www.peterkrantz.com/2007/utf8-in-pdf-writer/comment-page-1/#comment-2455</link>
		<dc:creator>Stefan Kroes</dc:creator>
		<pubDate>Thu, 12 Feb 2009 07:51:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterkrantz.com/2007/utf8-in-pdf-writer/#comment-2455</guid>
		<description>Thanks dude!! I was googling for almost half an hour before I found your article. My accented characters finally look right in my pdf document!</description>
		<content:encoded><![CDATA[<p>Thanks dude!! I was googling for almost half an hour before I found your article. My accented characters finally look right in my pdf document!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Exporting from Rails to Excel &#171; Coding is like gardening&#8230;</title>
		<link>http://www.peterkrantz.com/2007/utf8-in-pdf-writer/comment-page-1/#comment-2454</link>
		<dc:creator>Exporting from Rails to Excel &#171; Coding is like gardening&#8230;</dc:creator>
		<pubDate>Tue, 03 Feb 2009 13:57:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterkrantz.com/2007/utf8-in-pdf-writer/#comment-2454</guid>
		<description>[...] to export data as CSV Working with UTF-8 in PDF::Writer and Ruby on Rails Iconv Ruby [...]</description>
		<content:encoded><![CDATA[<p>[...] to export data as CSV Working with UTF-8 in PDF::Writer and Ruby on Rails Iconv Ruby [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan Heneise</title>
		<link>http://www.peterkrantz.com/2007/utf8-in-pdf-writer/comment-page-1/#comment-2450</link>
		<dc:creator>Ryan Heneise</dc:creator>
		<pubDate>Sun, 25 Jan 2009 19:25:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterkrantz.com/2007/utf8-in-pdf-writer/#comment-2450</guid>
		<description>Worked for me as well - thanks for posting this solution! I&#039;m subscribing in hopes of seeing something about your experiences with Prawn.</description>
		<content:encoded><![CDATA[<p>Worked for me as well &#8211; thanks for posting this solution! I&#8217;m subscribing in hopes of seeing something about your experiences with Prawn.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Hall</title>
		<link>http://www.peterkrantz.com/2007/utf8-in-pdf-writer/comment-page-1/#comment-2414</link>
		<dc:creator>Patrick Hall</dc:creator>
		<pubDate>Mon, 08 Dec 2008 16:55:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterkrantz.com/2007/utf8-in-pdf-writer/#comment-2414</guid>
		<description>&quot;The solution is to switch encoding back to ISO-8859-15 for text strings you feed to PDF::Writer.&quot;

How is this a solution to working with UTF-8 in PDF::Writer and Rails?

It&#039;s a way of *not* working with UTF-8 in PDF::Writer and Rails.</description>
		<content:encoded><![CDATA[<p>&#8220;The solution is to switch encoding back to ISO-8859-15 for text strings you feed to PDF::Writer.&#8221;</p>
<p>How is this a solution to working with UTF-8 in PDF::Writer and Rails?</p>
<p>It&#8217;s a way of *not* working with UTF-8 in PDF::Writer and Rails.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.peterkrantz.com/2007/utf8-in-pdf-writer/comment-page-1/#comment-2314</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Mon, 08 Sep 2008 13:27:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterkrantz.com/2007/utf8-in-pdf-writer/#comment-2314</guid>
		<description>@gpm

No solution, I&#039;m re-writing using prawn. The folks around it&#039;s google group are wonderfully helpful, and I look forward to an easier syntax. Cheers</description>
		<content:encoded><![CDATA[<p>@gpm</p>
<p>No solution, I&#8217;m re-writing using prawn. The folks around it&#8217;s google group are wonderfully helpful, and I look forward to an easier syntax. Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rails PDF Plugin unter Rails2.1 &#124; Code Schubser</title>
		<link>http://www.peterkrantz.com/2007/utf8-in-pdf-writer/comment-page-1/#comment-2308</link>
		<dc:creator>Rails PDF Plugin unter Rails2.1 &#124; Code Schubser</dc:creator>
		<pubDate>Tue, 19 Aug 2008 16:05:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterkrantz.com/2007/utf8-in-pdf-writer/#comment-2308</guid>
		<description>[...] übrigens im PDF Dokument mit UTF-8 arbeiten will, sollte mal bei Peter Krantz [...]</description>
		<content:encoded><![CDATA[<p>[...] übrigens im PDF Dokument mit UTF-8 arbeiten will, sollte mal bei Peter Krantz [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gpm</title>
		<link>http://www.peterkrantz.com/2007/utf8-in-pdf-writer/comment-page-1/#comment-2306</link>
		<dc:creator>gpm</dc:creator>
		<pubDate>Thu, 14 Aug 2008 00:41:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterkrantz.com/2007/utf8-in-pdf-writer/#comment-2306</guid>
		<description>The PDF::Writer newsgroup brings this up briefly (http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/ff2b849a9fc39a2b).  It sounds like you need to convert to UTF-16 and specify a UxFEFF BOM before text string (or, as i understand it, the string must start with the bytes 254 then 255).

I tried adding this to the solution here (http://pastie.org/252651) but it looks like the pdf is still rendering latin characters with the 254 and 255 bytes being rendered and prepended to everything.

Please post if you get this working!  Another alternative is to move over to prawn, which appears to support UTF-8 out of the box.</description>
		<content:encoded><![CDATA[<p>The PDF::Writer newsgroup brings this up briefly (<a href="http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/ff2b849a9fc39a2b" rel="nofollow">http://groups.google.com/group/comp.lang.ruby/browse_thread/thread/ff2b849a9fc39a2b</a>).  It sounds like you need to convert to UTF-16 and specify a UxFEFF BOM before text string (or, as i understand it, the string must start with the bytes 254 then 255).</p>
<p>I tried adding this to the solution here (<a href="http://pastie.org/252651" rel="nofollow">http://pastie.org/252651</a>) but it looks like the pdf is still rendering latin characters with the 254 and 255 bytes being rendered and prepended to everything.</p>
<p>Please post if you get this working!  Another alternative is to move over to prawn, which appears to support UTF-8 out of the box.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.peterkrantz.com/2007/utf8-in-pdf-writer/comment-page-1/#comment-2300</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Thu, 31 Jul 2008 20:19:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.peterkrantz.com/2007/utf8-in-pdf-writer/#comment-2300</guid>
		<description>Are there any ideas or techniques floating around here about how to do this if one is &lt;i&gt;&lt;b&gt;not&lt;/b&gt;&lt;/i&gt; only using Latin characters with diacritics?  I have japanese utf-8 that has to go into PDF::Writer.  Maybe I need to learn how to manipulate strings at a lower level or understand unicode more thoroughly, but here&#039;s what I&#039;ve got so far -   

Currently in PDF::Writer:
Iconv.conv(&#039;utf-16BE&#039;, &#039;utf-8&#039;, &#039;ローラー&#039;) ==&gt;  0í0ü0é0ü

While irb:
Iconv.conv(&#039;utf-16BE&#039;, &#039;utf-8&#039;, &#039;ローラー&#039;) ==&gt; &quot;0\3550\3740\3510\374&quot;</description>
		<content:encoded><![CDATA[<p>Are there any ideas or techniques floating around here about how to do this if one is <i><b>not</b></i> only using Latin characters with diacritics?  I have japanese utf-8 that has to go into PDF::Writer.  Maybe I need to learn how to manipulate strings at a lower level or understand unicode more thoroughly, but here&#8217;s what I&#8217;ve got so far &#8211;   </p>
<p>Currently in PDF::Writer:<br />
Iconv.conv(&#8216;utf-16BE&#8217;, &#8216;utf-8&#8242;, &#8216;ローラー&#8217;) ==&gt;  0í0ü0é0ü</p>
<p>While irb:<br />
Iconv.conv(&#8216;utf-16BE&#8217;, &#8216;utf-8&#8242;, &#8216;ローラー&#8217;) ==&gt; &#8220;0\3550\3740\3510\374&#8243;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
