Link to home
Start Free TrialLog in
Avatar of doctorbill
doctorbillFlag for United Kingdom of Great Britain and Northern Ireland

asked on

php form data

I have a text box on a php page residing on my apache web server which has the following:
"£300 plus other text lines"

The page is uft-8 encoded
The text "£300" is displayed correctly on my web server - ie the "£" sign comes across correctly
If I send the details of this text box via a php form, the "£300" comes out as "£300"

Can someone explain what is happening and how I can get rid of the £ and replace with £
SOLUTION
Avatar of Jim Riddles
Jim Riddles
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of doctorbill

ASKER

Sorry - typo. It is UTF-8
The data is stored in a mysql database. Could that be the reason
The data base text field is latin1_sweedish_ci
Should that be utf-8_general_ci
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If I change the database field will that corrupt the existing data in that field
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks