Page 1 of 1
[SOLVED] UTF8 &-Problem
Posted: 17 Sep 2009, 18:02
by Tobiwankenobi
Hi everyone,
if a shopper enters the company e.g. "Smith & Wesson" into the bill/ship to address, it will appear as "Smith & Wesson" on the PDF. Does anyone know a solution for that?
All fields of the table jos_vm_order_user_info are utf8_general_ci. Of course the whole database...
I thought about giving
http://www.tecnick.com/pagefiles/tcpdf/ ... F8ToLatin1 a try?
Thanks in advance for any reply,
Tobiwankenobi
Re: UTF8 &-Problem
Posted: 24 Sep 2009, 14:12
by Jan
Hi, there see the Euro code in the code, maybe there will be added the same as for Euro code
Jan
Re: UTF8 &-Problem
Posted: 27 Sep 2009, 16:13
by Tobiwankenobi
Hi Jan,
thanks for your reply! Of course, unhtmlentities will help!
I'll post the complete solution later!
Regards,
Tobiwan
Re: UTF8 &-Problem
Posted: 01 Oct 2009, 22:52
by Jan
Ok
Re: UTF8 &-Problem SOLVED!
Posted: 31 Dec 2009, 18:54
by Tobiwankenobi
Sorry for the delay, had a big exam to finish.
What I did is, I replaced
Code: Select all
$this->Cell(0,0,$hD['dbbt']->f("company"),0,0,'L');
through
Code: Select all
$this->Cell(0,0,$this->unhtmlentities($hD['dbbt']->f("company")),0,0,'L');
and the UTF-Problem was gone!
Happy new year everyone!
Tobi
Re: [SOLVED] UTF8 &-Problem
Posted: 24 Aug 2010, 10:27
by kseones
A customer has written in Middle Name "Pat". I have the
in
Code: Select all
$this->unhtmlentities($hD['dbst']->f("middle_name"))
changed but in invoice still stands: "Pat"
Regards
Remzi
Re: [SOLVED] UTF8 &-Problem
Posted: 28 Aug 2010, 13:35
by Jan
Hi, maybe you should use some str_replace function to remove the quotes.
Jan
Re: [SOLVED] UTF8 &-Problem
Posted: 13 Sep 2010, 10:34
by kseones
Thanks for the reply
here is the solution with str_replace
Code: Select all
$this->unhtmlentities(str_replace(""", "-", $hD['dbst']->f("middle_name")))
Re: [SOLVED] UTF8 &-Problem
Posted: 14 Sep 2010, 22:56
by Jan
Ok