How to update TCPDF version from 4.0.027_PHP4 to latest?

@apmuthu
Sorry I editted my post earlier. It worked. I was looking at the wrong PDF file. Thanks

@itronics
Oh I see. Thank you for nice explanation.

@apmuthu
I tried without mb_convert_encoding() and without your earlier post's fix, It worked!.

Yes, the db_escape() role is crucial. But actually saving the decoded apostrophe is the problem. When I look the sql_trail table to see how the query looks like. It showed like this

"UPDATE sys_prefs SET value = 'Carmen's ' WHERE name='coy_name'"

-- which is I think the proper: before the db_escape()

UPDATE sys_prefs SET value = 'Carmen's' WHERE name='coy_name';

-- after the db_escape() it should like this

UPDATE sys_prefs SET value = 'Carmen's ' WHERE name='coy_name'

Sorry for my bad english.

It works! I also think that db_escape() might be doing something. Thank you for your immediate response.

Yes it displayed the apostrophe without using the mb_convert_encoding() funtion. How can I help? I'm not that very skilled on PHP but I'll do what I can to help.

On header2.inc line 81 $this->company['coy_name'], cause our company name has apostrophe on its name. I haven't tested it on other reports. But the problem why it keeps decoding the apostrophe when saving it to database. Note that I've already changed the charset to utf-8.

It happens when generating PDF file. I changed the charset on mysql and use html_entity_decode but no luck. I use the mb_convert_encoding and it works!

I'm still confused why this is only happening on PDF file but on other things apostrophe is never been a problem.

How can I fix this apostrophe cause it looks like it when saving text with apostrophe, it converts to 's

10

(1 replies, posted in Reporting)

Is there any tutorial to make my own report? I have knowledge on PHP programming but some other variables are hard to understand.

In some cases, we acknowledge seniors and pwd discounts. In addition, the breakdown of of Total Amount in reports. How can I achieve that?

I see. I will use the english version to be formal. Thanks for your immediate answer.

13

(1 replies, posted in Accounts Receivable)

What will be the value of this field Customer Reference? Is this system automated or users will input?

Just want to ask if accounts on GL Accounts are Internationally used. I'm from Philippines and not much knowledgeable on accounting stuffs. Thanks