doctorbill
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 £
"£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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
The data base text field is latin1_sweedish_ci
Should that be utf-8_general_ci
Should that be utf-8_general_ci
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
If I change the database field will that corrupt the existing data in that field
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
ASKER
The data is stored in a mysql database. Could that be the reason