For some reason i get a £76756687 weird character when i type a £ into a text field on my form?
For some reason i get a  £76756687 weird character when i type a
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As you suspect, it’s a character encoding issue – is the page set to use a charset of UTF-8? (You can’t go wrong with this encoding really.) Also, you’ll probably want to entity encode the pound symbol on the way out (
£)As an example character set (for both the form page and HTML email) you could use:
That said, is there a good reason for the user to have to enter the currency symbol? Would it be a better idea to have it as either a static text item or a drop down to the left of the text field? (Feel free to ignore if I’m talking arse and you’re using a freeform textarea or summat.)