<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Chinese Characters appear as question marks in FA2 but not FA1]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=312</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=312&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Chinese Characters appear as question marks in FA2 but not FA1.]]></description>
		<lastBuildDate>Fri, 03 Oct 2008 08:55:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Chinese Characters appear as question marks in FA2 but not FA1]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1255#p1255</link>
			<description><![CDATA[<p>I have solved the problem. Easy yo do.</p><p>Just edit includes/current_user.inc,</p><p>in get_db_connection(),</p><p>find then sentence as below:<br />&nbsp; &nbsp;&nbsp; &nbsp; $db = mysql_connect($connection[&quot;host&quot;] ,<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $connection[&quot;dbuser&quot;], $connection[&quot;dbpassword&quot;]);</p><p>follow the sentence, add a line as below:<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;mysql_query(&quot;SET NAMES &#039;utf8&#039;&quot;);</p><p>and then save it.</p><p>Ok, now the sql connection is working under encoding &#039;utf8&#039;</p>]]></description>
			<author><![CDATA[null@example.com (stevehsu)]]></author>
			<pubDate>Fri, 03 Oct 2008 08:55:25 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1255#p1255</guid>
		</item>
		<item>
			<title><![CDATA[Re: Chinese Characters appear as question marks in FA2 but not FA1]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1254#p1254</link>
			<description><![CDATA[<p>Hello guys,<br />I&#039;m glad that you have done some research on this. I have no experience in chinese languages. When I prepared the chart of accounts, I used utf-8 from pspad I guess. <br />Maybe you can change the characters in the chart of accounts to be the right encoding. I have, however, the original charts in the correct characters. So maybe I should use another editor for preparing the charts.<br />And finally, if any of you can give instructions here to us, so new users can benefit from this, please.<br />We got the Arabic languages to work smoothly, so we should also solve this <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>/Joe<br />BTW, please install the cid0 font for Reporting. It reduces PDF filesize enormously.</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Fri, 03 Oct 2008 08:01:03 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1254#p1254</guid>
		</item>
		<item>
			<title><![CDATA[Re: Chinese Characters appear as question marks in FA2 but not FA1]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1253#p1253</link>
			<description><![CDATA[<p>Hi,</p><p>I have same problem as you. I use zh_HK-utf8.sql to make charts of account.</p><p>And also installed the language using Code &#039;zh_TW&#039; and Encoding &#039;utf-8&#039;.</p><p>All interface is working prefectly with chinese character but only account in combo box is shown as question marks.</p><p>Then I go to check my database and make sure it was encoded by &#039;utf8_unicode_ci&#039;. I am sure that I can see correct chinese characters in phpMyAdmin.</p><p>I guess FA didn&#039;t encode and decode with correct CODE string &#039;zh_TW&#039;.</p><p>I also found an insteresting thing is that to setup Encoding &#039;utf8&#039; is differ with &#039;utf-8&#039;. Even both can make whole interface work without probelm.</p><p>But if use &#039;utf8&#039; , the title of the window is unknown characters, otherwise,use &#039;utf-8&#039;, the title is ok. So, I guess FA support &#039;utf8&#039; and &#039;utf-8&#039;, but the Apache only support &#039;utf-8&#039;.&nbsp; </p><p>I found my browser send &#039;zh-tw&#039; to Apache (using phpinfo.php), so i changed FA CODE to &#039;zh-tw&#039;, but it still no work.</p><p>But if I enter the data of account from FA interface, I can read as what I entered, means that I can see correct chinese words. However I can not read it from phpMyAdmin, it is unknown words.</p>]]></description>
			<author><![CDATA[null@example.com (stevehsu)]]></author>
			<pubDate>Fri, 03 Oct 2008 07:38:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1253#p1253</guid>
		</item>
		<item>
			<title><![CDATA[Re: Chinese Characters appear as question marks in FA2 but not FA1]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1021#p1021</link>
			<description><![CDATA[<p>Hi, </p><p>The standard US demo isn&#039;t a problem at all as the chinese character set is able to use UTF-8 as well. However, the trick is to use zh_TW instead of zh_HK. Somehow, zh_HK just doesn&#039;t work, I am not sure why. </p><p>However, coming from a chinese background, both locales are actually using the same language which is traditional chinese, so it shouldn&#039;t be a problem. <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Yoshi Kawasaki<br />yoshi@opentres.com</p>]]></description>
			<author><![CDATA[null@example.com (yoshikawasaki)]]></author>
			<pubDate>Mon, 01 Sep 2008 10:27:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1021#p1021</guid>
		</item>
		<item>
			<title><![CDATA[Re: Chinese Characters appear as question marks in FA2 but not FA1]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1020#p1020</link>
			<description><![CDATA[<p>Yes, you should probably set the character set to the right one in MySql. Maybe the default en_US-demo.sql is not adequate to start a Chinese client. You should probably create your own script file for this.<br />If you do, please share it with us <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 01 Sep 2008 10:20:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1020#p1020</guid>
		</item>
		<item>
			<title><![CDATA[Re: Chinese Characters appear as question marks in FA2 but not FA1]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1017#p1017</link>
			<description><![CDATA[<p>Hi guys, problem solved. I&#039;m not sure how but I changed the encoding from Simplified Chinese and Traditional Chinese and it worked. sheesh. I am confused.</p>]]></description>
			<author><![CDATA[null@example.com (yoshikawasaki)]]></author>
			<pubDate>Mon, 01 Sep 2008 08:37:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1017#p1017</guid>
		</item>
		<item>
			<title><![CDATA[Chinese Characters appear as question marks in FA2 but not FA1]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=1015#p1015</link>
			<description><![CDATA[<p>Hi,</p><p>I am entering chinese characters into the database. In FA1, they are able to appear properly and entered into the database as chinese characters.</p><p>However in FA2, they appear as question marks.</p><p>I would appreciate if someone could advise.</p><p>Thank you.</p>]]></description>
			<author><![CDATA[null@example.com (yoshikawasaki)]]></author>
			<pubDate>Mon, 01 Sep 2008 04:52:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=1015#p1015</guid>
		</item>
	</channel>
</rss>
