<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi vtiger Team,<br>
<br>
I did a short investigation and the issue described below is
resolved.<br>
<br>
The built in "Times" fonts of TCPDF (set on the vtiger instance) are
not valid UTF-8 fonts. It means this "Times" has not include ŐŰ and
őű (o and u with double quote)<br>
<br>
<font color="#990000"><big>In the file:
....\vtlib\Vtiger\PDF\TCPDF.php <b>we should change</b> the
FontFamily</big></font><br>
About line: 20<br>
// $this->setFontFamily('times');<br>
$this->setFontFamily('freeserif');<br>
<br>
or <br>
$this->setFontFamily('dejavusans');<br>
<br>
Forum post about this issue:<br>
<a
href="http://sourceforge.net/projects/tcpdf/forums/forum/435311/topic/4373259">http://sourceforge.net/projects/tcpdf/forums/forum/435311/topic/4373259</a><br>
<br>
freeserif or dejavusans contains ŐŰ and őű (o and u with double
quote)<br>
<br>
I suggest to use freeserif or dejavusans instead of times fonts.<br>
<br>
Kindest regards:<br>
Istvan Holbok<br>
<br>
<br>
-------- Eredeti üzenet --------
<table class="moz-email-headers-table" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Tárgy: </th>
<td>UTF-8 issue in PDF invoice - vtiger 5.3.0./5.2.1.</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Dátum: </th>
<td>Fri, 18 Nov 2011 21:07:16 +0100</td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Feladó: </th>
<td>Holbok István <a class="moz-txt-link-rfc2396E" href="mailto:holbok@gmail.com"><holbok@gmail.com></a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Válaszcím:
</th>
<td><a class="moz-txt-link-abbreviated" href="mailto:holbok@gmail.com">holbok@gmail.com</a></td>
</tr>
<tr>
<th align="RIGHT" nowrap="nowrap" valign="BASELINE">Címzett: </th>
<td><a class="moz-txt-link-abbreviated" href="mailto:vtigercrm-developers@lists.vtigercrm.com">vtigercrm-developers@lists.vtigercrm.com</a></td>
</tr>
</tbody>
</table>
<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
Hi vtiger Team,<br>
<br>
There is a hard to find UTF-8/i18n issue in PDF system of vtiger<br>
<br>
The attached sample Invoice (vtiger 5.3.0.) will show this issue. Al
letters of "őűŐŰ" was changed into the ? mark. There are some
hardcoded language definition also in the invoice module but it is
not problem, I should add them into the Hungarian language files. <br>
<br>
There are a sequence of special non ASCII characters in Hungarian
language.<br>
<br>
<big><b>öüóőúéáűí and ÖÜÓŐÚÉÁŰÍ</b></big><br>
<br>
Hard to find this bug, because ISO-8859-1 also contains most of
these characters. The checking point is <big><b>őűŐŰ</b></big> <br>
<br>
"őűŐŰ" will appear in the character set if the encoding is
ISO-8859-2 or UTF-8 (or Central European Windows ).<br>
<br>
If "őűŐŰ" is changed into ? mark, then somewhere the character
encoding is turned over to the default ISO-8859-1.<br>
<br>
I have looked for this turning over point in the PDF system also,
but did not find.<br>
<br>
Interesting that this issue was experienced on the fresh installed
5.3.0, in the migrated 5.3.0 from 5.2.1 and in the 5.2.1 also. <br>
<br>
Easy to repeat this bug:<br>
In a sample instance of vtiger 5.3.0 (with sample data) enough to
change the first product name to the string containing:
öüóőúéáűíÖÜÓŐÚÉÁŰÍ<br>
<br>
After creating a PDF invoice using this product name (with
öüóőúéáűíÖÜÓŐÚÉÁŰÍ ) you will see ? mark instead of "őűŐŰ"<br>
<br>
Somebody has any idea how to correct it?<br>
<br>
regards:<br>
<br>
<div class="moz-signature">-- <br>
<br>
Holbok István<br>
telefon: +3670-342-0900<br>
e-mail: <a moz-do-not-send="true" href="mailto:holbok@gmail.com">holbok@gmail.com</a><br>
<br>
<br>
<br>
</div>
</body>
</html>