<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Thai font unreadable on pdf report]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6346</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6346&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Thai font unreadable on pdf report.]]></description>
		<lastBuildDate>Tue, 12 Jul 2016 20:27:09 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Thai font unreadable on pdf report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25784#p25784</link>
			<description><![CDATA[<p>It is possible that your version of php may fail:<br /></p><div class="codebox"><pre><code>function_exists(&quot;preg_replace_callback&quot;)</code></pre></div><p>FA v2.3.22 was released on 2014-09-29 whilst the file <strong>reporting/includes/html_entity_decode_php4.php</strong> was changed on:<br /><a href="https://github.com/FrontAccountingERP/FA/commit/1466764d49233238c6097c95341875be552d7487">Sep 7, 2015</a>, <a href="https://github.com/FrontAccountingERP/FA/commit/a1a4dfb6ba6bc8104bf29cc02858c2e2eab1abfb">Nov 7, 2014</a> and introduced on <a href="https://github.com/FrontAccountingERP/FA/commit/c09be0dad6b05131e240349a375af7a4b7bf3444">Aug 24, 2008</a>.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 12 Jul 2016 20:27:09 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25784#p25784</guid>
		</item>
		<item>
			<title><![CDATA[Re: Thai font unreadable on pdf report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25776#p25776</link>
			<description><![CDATA[<p>Definitely it will be a simple and good software for the mid and small range companies.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Mon, 11 Jul 2016 23:26:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25776#p25776</guid>
		</item>
		<item>
			<title><![CDATA[Re: Thai font unreadable on pdf report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25767#p25767</link>
			<description><![CDATA[<p>Thank you apmuthu for your reply.</p><p>I replace file html_entity_decode_php4.php with code in FA 2.3.22,change utf8 to utf-8 in \lang\installed_languages.inc and then problem is fixed. I don&#039;t understand why.</p><p>Dejavu font is supported Thai font, but the space between characters is improper presented. Unsanaupc, cordiaupc or thsarabun is perfectly displayed.</p><p>I just install and test &quot;FA&quot; on window xp sp3. It is a very useful accounting software.</p><p>Thank you so much,</p>]]></description>
			<author><![CDATA[null@example.com (Seree)]]></author>
			<pubDate>Mon, 11 Jul 2016 02:35:51 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25767#p25767</guid>
		</item>
		<item>
			<title><![CDATA[Re: Thai font unreadable on pdf report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25756#p25756</link>
			<description><![CDATA[<p>If it is linux, make sure the language is enabled in the OS itself and the language .mo files are compiled for UTF-8.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 10 Jul 2016 01:58:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25756#p25756</guid>
		</item>
		<item>
			<title><![CDATA[Thai font unreadable on pdf report]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25736#p25736</link>
			<description><![CDATA[<p>Sawasdee (Hello)</p><p>After installing frontaccounting-2.3.25 on localhost webserver-appserv 2.5.10 (apache 2.2, php 5.2.17, mysql 5.0), I face a unreadable Thai font problem on pdf report ie trail balance shows à ̧‡à ̧ ́à ̧™à ̧ªà ̧”à ̧¢à (unreadable Thai font).</p><p>I already set the following:</p><p>1. set utf8 in \lang\installed_languages.inc <br />2. put code mysql_set_charset (&#039;utf8&#039;, $link);into \includes\db\connect_db.inc<br />3. copy dejavu (as link in wiki) to font folder<br />4. delete line 336-347 in file html_entity_decode_php4.php casue using php &lt;v5.3<br />5. file includes\class.pdf.inc line 161 is already set font name to dejavu.</p><p>I don’t’ sure it is about utf8 and utf-8. When I put utf-8 in file installed_languages.inc and connect_db.inc as no 1-2 mentioned above, on screen and my sql data displays Thai font as ‘????’, but changing to utf8 on screen and mysql data properly shows Thai font. However, I notice in ‘class.pdf.inc’ use UTF-8. I try to change code in this file to utf8. PDF report is shown blank (having only line with no font)</p><p> Please advice how to fix Thai font on pdf report.<br />Thank you<br />Seree</p>]]></description>
			<author><![CDATA[null@example.com (Seree)]]></author>
			<pubDate>Thu, 07 Jul 2016 23:23:03 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25736#p25736</guid>
		</item>
	</channel>
</rss>
