Weird Symbols With PHP/MySQL

Associate
Joined
6 Feb 2003
Posts
1,105
Location
London
Ok im not sure which of php or mysql is to blame but in generated letters and stuff which grab things from the database - whenever you get a £ sign or something it either outputs a  sign before it - or if its on a webpage form then a funny diamond shaped thing with a questionmark in it. I can get rid of the obscure Â's with a str_replace but im not sure why they are even getting there in the first place? Encoding £ as £ doesnt solve it - and because I generate PDF's from the data it interprets that as being £ literally so its not a solution.

Anyone come across this weirdness? It seems to happen with the * character aswell. The thing is using PHPmyAdmin the Â's are not visible in the stored data so I dunno what its doing.
 
Back
Top Bottom