Sometimes, when copying text from notepad into the website coding, strange characters appear on the live website, can’t remember all the instances over the years, but the latest this morning, was the pound sign £ I have the doctype setup as <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”
“http://www.w3.org/TR/html4/loose.dtd”>
I have seen BOM related issues before, but as this is an extraneous pound symbol my guess would be the page has a table and the pound symbol is in the wrong place. eg.
<tr>£<td>
instead of
<tr><td>£</td>
So your file is saved in a particular format, but you need to tell the browser what format it is too, so you have to put that in the header. (looks like you have already done that). Check here.
With regards to your code, I can’t help. Too many possibilities. I would say it is more likely one of the other things though.
Thanks all for your help. I wonder, from another direction. Is there anyone here, who, when putting just the singular £ sign, that it appears on the internet, as just that, a £ sign?
Sorry, I’m getting lost and maybe I’m not making myself clear, when I want to enter a £ sign, I just want enter simply that. So, just doing one step at a time, in the page itself I have:
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”
“http://www.w3.org/TR/html4/loose.dtd”>
<html lang=“en”>
<meta http-equiv=“Content-Type” content=“text/html;charset=iso-8859-1”/>
Is the coding above correct to get on the way to achieving the aim please?
To clarify what I said above, I use £ with utf-8 and have never had a problem.
I have also in the past used £ with iso-8859-1 and again, encountered no problems.
(Actually, to be honest, I quite often use £ with utf-8, out of force of habit - and that doesn’t cause problems either. The only issue, as others have said, is with using £ in iso-8859-1.)
Many, many thanks. very helpful. The weird (and confusing) thing, is that I just tried it with <meta http-equiv=“Content-Type” content=“text/html;charset=iso-8859-1”/> put in £ and that’s how it appeared.