RC51 - Charity - Proxy - Secured Loans - Remortgaging

PDA

View Full Version : strange characters keep showing up in db


billybrag
Oct 31st 2005, 7:01 am
strange characters keep showing up in db

Hi all i am using a mysql database to run a script i found on the net, and strange things keep happening

The £ sign kees changing to either a ? or it adds a strange looking A to the front of it.

Any ideas what might cause this

Mike

dkalweit
Oct 31st 2005, 7:07 am
strange characters keep showing up in db

Hi all i am using a mysql database to run a script i found on the net, and strange things keep happening

The £ sign kees changing to either a ? or it adds a strange looking A to the front of it.

Any ideas what might cause this

Mike

Some kind of code page/high ascii/unicode issue... Sorry I have no details on how to fix your problem, but this is most likely the root cause of it.


--
Derek

J.D.
Oct 31st 2005, 11:01 am
If you see something like Â, then your application is pulling the £ symbol from the database in UTF-8, but your page is displaying it as something else. Changing your charset to UTF-8 should fix this problem:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

J.D.

billybrag
Nov 2nd 2005, 3:30 am
i have tried that but i think the problem is that the DB is outputting something that is not utf-8 ie things like � instead of £

please help

J.D.
Nov 2nd 2005, 6:16 am
i have tried that but i think the problem is that the DB is outputting something that is not utf-8 ie things like � instead of £

please helpCan you copy and paste these characters? Also, try connecting to MySQL from the console and select the record that contain these characters. Paste here the characters you get back.

J.D.