<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — imagettftext not display utf-8 if russian or latvian]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=1704</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1704&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in imagettftext not display utf-8 if russian or latvian.]]></description>
		<lastBuildDate>Sun, 28 Nov 2010 22:31:49 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: imagettftext not display utf-8 if russian or latvian]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=7554#p7554</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sun, 28 Nov 2010 22:31:49 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=7554#p7554</guid>
		</item>
		<item>
			<title><![CDATA[imagettftext not display utf-8 if russian or latvian]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=7553#p7553</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (straga)]]></author>
			<pubDate>Sun, 28 Nov 2010 22:16:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=7553#p7553</guid>
		</item>
	</channel>
</rss>
