[SOLVED] UTF8 &-Problem
-
- Phoca Member
- Posts: 10
- Joined: 09 Aug 2009, 20:33
[SOLVED] UTF8 &-Problem
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
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
Last edited by Tobiwankenobi on 31 Dec 2009, 18:57, edited 1 time in total.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: UTF8 &-Problem
Hi, there see the Euro code in the code, maybe there will be added the same as for Euro code
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 10
- Joined: 09 Aug 2009, 20:33
Re: UTF8 &-Problem
Hi Jan,
thanks for your reply! Of course, unhtmlentities will help!
I'll post the complete solution later!
Regards,
Tobiwan
thanks for your reply! Of course, unhtmlentities will help!
I'll post the complete solution later!
Regards,
Tobiwan
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
-
- Phoca Member
- Posts: 10
- Joined: 09 Aug 2009, 20:33
Re: UTF8 &-Problem SOLVED!
Sorry for the delay, had a big exam to finish.
What I did is, I replaced
through
and the UTF-Problem was gone!
Happy new year everyone!
Tobi
What I did is, I replaced
Code: Select all
$this->Cell(0,0,$hD['dbbt']->f("company"),0,0,'L');
Code: Select all
$this->Cell(0,0,$this->unhtmlentities($hD['dbbt']->f("company")),0,0,'L');
Happy new year everyone!
Tobi
-
- Phoca Newbie
- Posts: 4
- Joined: 24 Aug 2010, 10:24
Re: [SOLVED] UTF8 &-Problem
A customer has written in Middle Name "Pat". I have the
in
changed but in invoice still stands: "Pat"
Regards
Remzi
Code: Select all
$hD['dbst']->f("middle_name")
Code: Select all
$this->unhtmlentities($hD['dbst']->f("middle_name"))
Regards
Remzi
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: [SOLVED] UTF8 &-Problem
Hi, maybe you should use some str_replace function to remove the quotes.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 24 Aug 2010, 10:24
Re: [SOLVED] UTF8 &-Problem
Thanks for the reply
here is the solution with str_replace
here is the solution with str_replace
Code: Select all
$this->unhtmlentities(str_replace(""", "-", $hD['dbst']->f("middle_name")))
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact: