0

This is driving me mad, I'm sure I'm missing something.

I save the £ sign into the database and it displays fine when I check the database, but when I print this out in a pdf it displays as £.

I can't use modify headers because I'm previewing a pdf in the chrome web browser.

Any ideas would be great!!!

Edited by iamthwee

2
Contributors
3
Replies
18
Views
2 Years
Discussion Span
Last Post by iamthwee
0

Ok it looks like I solved this using:

$varivalue = iconv('UTF-8', 'windows-1252', $varivalue);

Leaving this open in case anyone has some more ideas.

0

DB charset and collation is?
Can't send header you say?

header('Content-Type: text/html; charset=utf-8');
0

Thanks Diafol,I know that would resolve it but I'm outputting a pdf straight to the browser, so I can't specify the header type.

In any case the solution above seems to have solved it. I checked in the db and it was saving it correctly.

Regards,

Iamthwee

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.