mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix: Complete support of euro sign.
This commit is contained in:
parent
b6bc9223df
commit
0d24efbfd3
|
|
@ -30,6 +30,7 @@ For users:
|
|||
- Fix: Project PDF document show the tasks.
|
||||
- Fix: bug #29278 : SMTP fails with IP
|
||||
- Fix: Default language on login page.
|
||||
- Fix: Complete support of euros sign (even in PDF).
|
||||
|
||||
For developers:
|
||||
- More comments in code.
|
||||
|
|
|
|||
|
|
@ -507,7 +507,7 @@ class Translate {
|
|||
function convToOutputCharset($str,$pagecodefrom='UTF-8')
|
||||
{
|
||||
if ($pagecodefrom == 'ISO-8859-1' && $this->charset_output == 'UTF-8') $str=utf8_encode($str);
|
||||
if ($pagecodefrom == 'UTF-8' && $this->charset_output == 'ISO-8859-1') $str=utf8_decode($str);
|
||||
if ($pagecodefrom == 'UTF-8' && $this->charset_output == 'ISO-8859-1') $str=utf8_decode(str_replace('€',chr(128),$str));
|
||||
return $str;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -192,8 +192,7 @@ function pdf_pagefoot(&$pdf,$outputlangs,$paramfreetext,$fromcompany,$marge_bass
|
|||
'__FROM_EMAIL__' => $fromcompany->email,
|
||||
'__TOTAL_TTC__' => $object->total_ttc,
|
||||
'__TOTAL_HT__' => $object->total_ht,
|
||||
'__TOTAL_VAT__' => $object->total_vat,
|
||||
'€' => chr(128)
|
||||
'__TOTAL_VAT__' => $object->total_vat
|
||||
);
|
||||
|
||||
$newfreetext=make_substitutions($conf->global->$paramfreetext,$substitutionarray,$outputlangs,$object);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user