Log in

View Full Version : Unknown character before £ sign



theremotedr
03-01-2015, 12:41 PM
Trying to fix this issue with an unknown character before a £ sign

Here is the page http://www.theremotedoctor.co.uk/victorias_attic.html

Any advice on how i fix this so its not shown.

Beverleyh
03-01-2015, 01:27 PM
I'm not seeing anything on iPhone. Did you fix it already?

I recently had a problem with an RSS feed putting what looked like a capital A, with some kind of accent above it, in front of £ signs. I fixed it by changing the charset from ISO-8859-1 to UTF-8

theremotedr
03-02-2015, 10:41 AM
Hi,
Yes its sorted now.
After i fixed it i had no internet all night.
I did change it to UTF-8

Thanks

styxlawyer
03-02-2015, 02:00 PM
To make your site cross-browser compatible, it would be wiser to replace the pound character with the HTML entity. Use either £ or &_#163; (remove the underscore!).

coothead
03-02-2015, 02:46 PM
Hi there styxlawyer,


feel free to correct me if I am wrong, but I would
assume that all modern browsers support UTF-8. ;)


coothead

theremotedr
03-02-2015, 03:00 PM
I never had anything so i added this and works for me <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Regarding making the site cross-browser compatible do you mean in some browsers the £ sign will be shown as a different character ?
I have check in IE,Firefox & Chrome and all show the £ sign no problem.
Thanks for the input.

Beverleyh
03-02-2015, 03:17 PM
It's more likely that problems arise if the software used to save the web page document during editing is using a different encoding system than the charset of the web page - so it sometimes happens where you introduce a character to a document that gets converted and then displayed as square or question mark. This is a saved character 'fault' in the file though, rather than a browser misinterpreting it on screen.

More info here http://www.thesitewizard.com/html-tutorial/pound-sign-not-showing-up-correctly.shtml

theremotedr
03-02-2015, 03:28 PM
So best if i go with &pound; etc rather than just a £ sign.

Beverleyh
03-02-2015, 03:57 PM
See the link in my previous post. Using &pound; is a quick fix but doesn't solved any underlying encoding mismatch (if present). It is better to match the UTF-8 declaration of the file to the encoding scheme of the file when it is saved. For example, in Notepad you can do this at the save screen where the encoding type dropdown defaults to ANSI. Change it to UTF-8 to save your UTF-8 declared web page.