<?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: How to use special characters in FPDF</title>
	<atom:link href="http://think-robot.com/2008/09/how-to-use-special-characters-in-fpdf/feed/" rel="self" type="application/rss+xml" />
	<link>http://think-robot.com/2008/09/how-to-use-special-characters-in-fpdf/</link>
	<description>Design &#38; Development Blog</description>
	<lastBuildDate>Wed, 09 May 2012 11:54:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Ari</title>
		<link>http://think-robot.com/2008/09/how-to-use-special-characters-in-fpdf/comment-page-1/#comment-21064</link>
		<dc:creator>Ari</dc:creator>
		<pubDate>Wed, 09 May 2012 11:54:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.think-robot.com/?p=12#comment-21064</guid>
		<description>For us this also worked: utf8_decode($variable)</description>
		<content:encoded><![CDATA[<p>For us this also worked: utf8_decode($variable)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cristian Göhl</title>
		<link>http://think-robot.com/2008/09/how-to-use-special-characters-in-fpdf/comment-page-1/#comment-17403</link>
		<dc:creator>Cristian Göhl</dc:creator>
		<pubDate>Sun, 13 Nov 2011 06:12:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.think-robot.com/?p=12#comment-17403</guid>
		<description>example:

function codificacao($string) {
        return mb_detect_encoding($string.&#039;x&#039;, &#039;UTF-8, ISO-8859-1&#039;);
    }

function Cell($w, $h=0, $txt=&#039;&#039;, $border=0, $ln=0, $align=&#039;&#039;, $fill=false, $link=&#039;&#039;)
{
	if ($this-&gt;codificacao($txt) == &#039;UTF-8&#039;)
	{
		$txt = iconv(&quot;UTF-8&quot;, &quot;ISO-8859-1&quot;, $txt);
	}</description>
		<content:encoded><![CDATA[<p>example:</p>
<p>function codificacao($string) {<br />
        return mb_detect_encoding($string.&#8217;x', &#8216;UTF-8, ISO-8859-1&#8242;);<br />
    }</p>
<p>function Cell($w, $h=0, $txt=&#8221;, $border=0, $ln=0, $align=&#8221;, $fill=false, $link=&#8221;)<br />
{<br />
	if ($this-&gt;codificacao($txt) == &#8216;UTF-8&#8242;)<br />
	{<br />
		$txt = iconv(&#8220;UTF-8&#8243;, &#8220;ISO-8859-1&#8243;, $txt);<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neelima</title>
		<link>http://think-robot.com/2008/09/how-to-use-special-characters-in-fpdf/comment-page-1/#comment-14528</link>
		<dc:creator>Neelima</dc:creator>
		<pubDate>Thu, 21 Jul 2011 08:04:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.think-robot.com/?p=12#comment-14528</guid>
		<description>I just resolved my issue .

used html_entity_decode() , and now my pdf is generating perfectly.  :D</description>
		<content:encoded><![CDATA[<p>I just resolved my issue .</p>
<p>used html_entity_decode() , and now my pdf is generating perfectly.  <img src='http://think-robot.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neelima</title>
		<link>http://think-robot.com/2008/09/how-to-use-special-characters-in-fpdf/comment-page-1/#comment-14526</link>
		<dc:creator>Neelima</dc:creator>
		<pubDate>Thu, 21 Jul 2011 07:27:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.think-robot.com/?p=12#comment-14526</guid>
		<description>Hi ,

I am facing the same issue special characters showing their code value in pdf.

I tried the solution you have mentioned here but it is not working for me .

Code :

$projDescr=utf8_decode($projDescr);

$pdf-&gt;MultiCell(100,5,iconv(”UTF-8″, “ISO-8859-1″, $projDescr),”0″,”J”);</description>
		<content:encoded><![CDATA[<p>Hi ,</p>
<p>I am facing the same issue special characters showing their code value in pdf.</p>
<p>I tried the solution you have mentioned here but it is not working for me .</p>
<p>Code :</p>
<p>$projDescr=utf8_decode($projDescr);</p>
<p>$pdf-&gt;MultiCell(100,5,iconv(”UTF-8″, “ISO-8859-1″, $projDescr),”0″,”J”);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Hutchings</title>
		<link>http://think-robot.com/2008/09/how-to-use-special-characters-in-fpdf/comment-page-1/#comment-12113</link>
		<dc:creator>Ben Hutchings</dc:creator>
		<pubDate>Tue, 10 May 2011 09:57:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.think-robot.com/?p=12#comment-12113</guid>
		<description>You... rock.</description>
		<content:encoded><![CDATA[<p>You&#8230; rock.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cyril</title>
		<link>http://think-robot.com/2008/09/how-to-use-special-characters-in-fpdf/comment-page-1/#comment-10449</link>
		<dc:creator>Cyril</dc:creator>
		<pubDate>Wed, 23 Mar 2011 13:13:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.think-robot.com/?p=12#comment-10449</guid>
		<description>Thank you very much for this tip. Simply hacked the cell function, as Marco suggested, it solved all my problems !</description>
		<content:encoded><![CDATA[<p>Thank you very much for this tip. Simply hacked the cell function, as Marco suggested, it solved all my problems !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Eaton</title>
		<link>http://think-robot.com/2008/09/how-to-use-special-characters-in-fpdf/comment-page-1/#comment-9159</link>
		<dc:creator>Richard Eaton</dc:creator>
		<pubDate>Thu, 23 Dec 2010 11:54:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.think-robot.com/?p=12#comment-9159</guid>
		<description>Excellent post! Had just found the issue when trying to display a pound sign in a PDF document, Googled and found this article!

Many thanks for sharing - has no doubt saved me loads of time :)

Here&#039;s how I used it which worked 1st time!

$pdf-&gt;Write(5,&#039;UNIT COST(&#039;.iconv(&quot;UTF-8&quot;, &quot;ISO-8859-1&quot;, &quot;£&quot;).&#039;)&#039;);

Thanks

Richard</description>
		<content:encoded><![CDATA[<p>Excellent post! Had just found the issue when trying to display a pound sign in a PDF document, Googled and found this article!</p>
<p>Many thanks for sharing &#8211; has no doubt saved me loads of time <img src='http://think-robot.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Here&#8217;s how I used it which worked 1st time!</p>
<p>$pdf-&gt;Write(5,&#8217;UNIT COST(&#8216;.iconv(&#8220;UTF-8&#8243;, &#8220;ISO-8859-1&#8243;, &#8220;£&#8221;).&#8217;)');</p>
<p>Thanks</p>
<p>Richard</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matthew Barnett</title>
		<link>http://think-robot.com/2008/09/how-to-use-special-characters-in-fpdf/comment-page-1/#comment-9118</link>
		<dc:creator>Matthew Barnett</dc:creator>
		<pubDate>Mon, 20 Dec 2010 17:48:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.think-robot.com/?p=12#comment-9118</guid>
		<description>Using FPDF Version: 1.6 this solution required the windows-1252 character set. I.e.
$str = iconv(&#039;UTF-8&#039;, &#039;windows-1252&#039;, $str);</description>
		<content:encoded><![CDATA[<p>Using FPDF Version: 1.6 this solution required the windows-1252 character set. I.e.<br />
$str = iconv(&#8216;UTF-8&#8242;, &#8216;windows-1252&#8242;, $str);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nejck</title>
		<link>http://think-robot.com/2008/09/how-to-use-special-characters-in-fpdf/comment-page-1/#comment-8596</link>
		<dc:creator>nejck</dc:creator>
		<pubDate>Wed, 10 Nov 2010 08:25:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.think-robot.com/?p=12#comment-8596</guid>
		<description>Sadly none of the above solutions work for me with letters šđčćž :(

any ideas?</description>
		<content:encoded><![CDATA[<p>Sadly none of the above solutions work for me with letters šđčćž <img src='http://think-robot.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raito</title>
		<link>http://think-robot.com/2008/09/how-to-use-special-characters-in-fpdf/comment-page-1/#comment-8157</link>
		<dc:creator>Raito</dc:creator>
		<pubDate>Sun, 03 Oct 2010 14:41:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.think-robot.com/?p=12#comment-8157</guid>
		<description>Hello!
I cant get baltic (ā ē ū ļ ņ š ķ ) font in fpdf invoice ...  how to decode  to utf-8 ?!
Please help!  
P.S.

What i need to do  to convert the data before passing it on to FPDF ?

Best regards
Raitis</description>
		<content:encoded><![CDATA[<p>Hello!<br />
I cant get baltic (ā ē ū ļ ņ š ķ ) font in fpdf invoice &#8230;  how to decode  to utf-8 ?!<br />
Please help!<br />
P.S.</p>
<p>What i need to do  to convert the data before passing it on to FPDF ?</p>
<p>Best regards<br />
Raitis</p>
]]></content:encoded>
	</item>
</channel>
</rss>

