<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — imagettftext not display utf-8 if russian or latvian]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1704&amp;type=atom" />
	<updated>2010-11-28T22:31:49Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=1704</id>
		<entry>
			<title type="html"><![CDATA[Re: imagettftext not display utf-8 if russian or latvian]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=7554#p7554" />
			<content type="html"><![CDATA[<p>This has recently been solved in 2.3 RC3 and is going into final 2.3. But thanks anyhow. We have changed to a better font also.<br />But if your solution works, you might just use it this way.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2010-11-28T22:31:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=7554#p7554</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[imagettftext not display utf-8 if russian or latvian]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=7553#p7553" />
			<content type="html"><![CDATA[<p>Top 10 Sold Items in fiscal year - graphic not display - &amp;#257;&amp;#256; &amp;#1042;&amp;#1086;&amp;#1090;</p><p>Not work function imagettftext&nbsp; latvia and russian in file class.graphic.inc.</p><p>Add some modification in file&nbsp; class.graphic.inc.</p><p>line after 962 </p><p>================<br />$out = &#039;&#039;;<br />$string = mb_convert_encoding($string, &#039;HTML-ENTITIES&#039;,&quot;UTF-8&quot;);<br />// Convert HTML entities into ISO-8859-1<br />$string = html_entity_decode($string,ENT_NOQUOTES, &quot;ISO-8859-1&quot;);<br />// Convert characters &gt; 127 into their hexidecimal equivalents<br />for($i = 0; $i &lt; strlen($string); $i++) {<br />&nbsp; &nbsp; $letter = $string[$i];<br />&nbsp; &nbsp; $num = ord($letter);<br />&nbsp; &nbsp; if($num&gt;127) {<br />&nbsp; &nbsp; &nbsp; $out .= &quot;&amp;#$num;&quot;;<br />&nbsp; &nbsp; } else {<br />&nbsp; &nbsp; &nbsp; $out .=&nbsp; $letter;<br />&nbsp; &nbsp; }<br />}</p><p>$string = $out;</p><p>==============<br />after this work fine.</p>]]></content>
			<author>
				<name><![CDATA[straga]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=246</uri>
			</author>
			<updated>2010-11-28T22:16:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=7553#p7553</id>
		</entry>
</feed>
