Hi
Whenever i go to Print as PDF on a quote i get the odd symbol  before the GBP Symbol ( £ ) in the PDF document.
Does anyone know the solution to this?
Attached is a screenshot.
Any help will be greatly appreciated.
Thanks A lot
Jake Maskell
Hi
Whenever i go to Print as PDF on a quote i get the odd symbol  before the GBP Symbol ( £ ) in the PDF document.
Does anyone know the solution to this?
Attached is a screenshot.
Any help will be greatly appreciated.
Thanks A lot
Jake Maskell
Hi,
i solved a similar issue by some changes in quote template
you may find the templates modules/Quotes/layouts where Standard.php is for quotes
if you wanna customize your quotes and bills you should have a look at: http://www.sugarcrm.com/wiki/index.p...quote_template
to fix the problem you have to add
163=>'sterling'
to $euro_diff array
PHP Code:$euro_diff = array(
2=>'Euro',
163=>'sterling'
);
Then you have to enclose every string you want the special symbols to be printed with
ie. pound symbol is in latin1 / iso-8859-1 charsetPHP Code:mb_convert_encoding($here_is_your_string, "ISO-8859-1", "UTF-8");
so for example:
PHP Code:mb_convert_encoding(format_number($focus->total, $locale->getPrecision(), $locale->getPrecision(), $format_number_array)"ISO-8859-1", "UTF-8");
This should work. If anyone has some better ideas please tell me.
I am wondering how to put characters from different charsets into same document (and same string)
For example something like Ł (polish) and £.
Deniz
Hi
Thanks for the quick reply glad someone is willing to help.
i have added.
$euro_diff = array(
2=>'Euro',
163=>'sterling'
);
to " Standard.php "
But I don't quite understand what you mean by " Then you have to enclose every string you want the special symbols to be printed with "
Could you please expline in more detail
sorry im new to Sugar
Thanks for the help i realy apretiate it.
Jake Maskell
Hi Jake,
thats no problem ....
the template system is using ezPDF for creation of documnets. This has several input methods like addText(), ezTable(), etc...
you can try this documentation http://www.ros.co.nz/pdf/readme.pdf
so, for example the grand total is written as a table
if you go to line 285 in Standard.php there should be declared an array $total
entries are like $total[<#>]['<rowname>']='<value>'
now changing line 303 from
toPHP Code:$total[3]['VALUE'] = format_number($focus->total, $locale->getPrecision(), $locale->getPrecision(), $format_number_array);
should do what you are looking forPHP Code:$total[3]['VALUE'] = mb_convert_encoding(format_number($focus->total, $locale->getPrecision(), $locale->getPrecision(), $format_number_array), "ISO-8859-1", "UTF-8");
Deniz
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks