<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Thai font unreadable on pdf report]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6346&amp;type=atom" />
	<updated>2016-07-12T20:27:09Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6346</id>
		<entry>
			<title type="html"><![CDATA[Re: Thai font unreadable on pdf report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25784#p25784" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-07-12T20:27:09Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25784#p25784</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Thai font unreadable on pdf report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25776#p25776" />
			<content type="html"><![CDATA[<p>Definitely it will be a simple and good software for the mid and small range companies.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2016-07-11T23:26:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25776#p25776</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Thai font unreadable on pdf report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25767#p25767" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Seree]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=31964</uri>
			</author>
			<updated>2016-07-11T02:35:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25767#p25767</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Thai font unreadable on pdf report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25756#p25756" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-07-10T01:58:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25756#p25756</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Thai font unreadable on pdf report]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25736#p25736" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Seree]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=31964</uri>
			</author>
			<updated>2016-07-07T23:23:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25736#p25736</id>
		</entry>
</feed>
