{"id":271,"date":"2011-08-15T15:02:41","date_gmt":"2011-08-15T15:02:41","guid":{"rendered":"http:\/\/www.nirvaat.com\/?p=271"},"modified":"2011-08-15T15:02:41","modified_gmt":"2011-08-15T15:02:41","slug":"displaying-utf-characters-in-the-fpdf","status":"publish","type":"post","link":"https:\/\/nirvaat.com\/blogs\/2011\/08\/displaying-utf-characters-in-the-fpdf\/","title":{"rendered":"Displaying UTF characters in the FPDF"},"content":{"rendered":"<p>It is very easy to show UTF characters in a FPDF generated PDF file. Just use the following conversion function and it will work. Assume you have initialized the FPDF class to $pdf variable and you want to print the string stored in $name variable:<\/p>\n<p>$pdf-&gt;Write(iconv(&#8220;UTF-8&#8221;, &#8220;ISO-8859-1&#8221;, $name));<\/p>\n<p>It worked for me.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is very easy to show UTF characters in a FPDF generated PDF file. Just use the following conversion function and it will work. Assume you have initialized the FPDF class to $pdf variable and you want to print the string stored in $name variable: $pdf-&gt;Write(iconv(&#8220;UTF-8&#8221;, &#8220;ISO-8859-1&#8221;, $name)); It worked for me.<\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"_vp_format_video_url":"","_vp_image_focal_point":[],"footnotes":""},"categories":[26],"tags":[46,47],"class_list":["post-271","post","type-post","status-publish","format-standard","hentry","category-quick-fixes","tag-fpdf","tag-utf-8"],"_links":{"self":[{"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/posts\/271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/comments?post=271"}],"version-history":[{"count":2,"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/posts\/271\/revisions"}],"predecessor-version":[{"id":273,"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/posts\/271\/revisions\/273"}],"wp:attachment":[{"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/media?parent=271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/categories?post=271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nirvaat.com\/blogs\/wp-json\/wp\/v2\/tags?post=271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}