Sawasdee (Hello)
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).
I already set the following:
1. set utf8 in \lang\installed_languages.inc
2. put code mysql_set_charset ('utf8', $link);into \includes\db\connect_db.inc
3. copy dejavu (as link in wiki) to font folder
4. delete line 336-347 in file html_entity_decode_php4.php casue using php <v5.3
5. file includes\class.pdf.inc line 161 is already set font name to dejavu.
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)
Please advice how to fix Thai font on pdf report.
Thank you
Seree