On Fri, Mar 23, 2007 at 06:11:42PM -0000, Ted Harding wrote:
On 23-Mar-07 16:04:44, Eur Ing Chris Green wrote:
It depends how many pound signs there are, what follows them, etc.
I have set some test files up on my server, I'd be interested to know if others see the same effects (I think they will as I believe they're caused by the apache server, not the browser).
http://home.isbd.net/chris/xxx.txt Renders as I would expect, even though it has a string of pound signs. Page info says it's windows-1253 encoding. http://home.isbd.net/chris/testPounds1.txt Renders OK (only one pound sign) but in a slightly larger size font than the one above. Says it's windows-1252 encoding. http://home.isbd.net/chris/testPounds2.txt Shows ? for the pound sign and loses several characters after the pound sign, uses an even bigger font! Page info says it's gb18030 encoding.
I suppose apache is trying to guess the encoding by some sort of heuristic and getting things somewhat wrong. Does anyone have any idea where/how apache does this?
I see all three pages apparently perfectly (see below as check against what they mght be supposed to be). My firefox doesn't seem to have a "Page info", but the default encoding is "Western ISO-8859-1".
In all three cases,
"View" --> "Character Encoding" says "Western ISO-8859-1".
"View" --> "Page Source" simply shows the text, with no HTML to mess with the encoding.
What I see on each of the pages:
xxx.tst:
This is xxx.txt.
Here are some ££££££££££££££ signs.
Here are some accented characters éèçö
Here is a link:-
http://www.google.co.uk/
testPounds1.txt:
Here is a pound sign with a number after £2 ... and here is hash sign with a number after #9
testPounds2.txt:
Here is a pound sign with a number after £2
... and here is another pound sign with a number after £9
Was that what they're supposed to look like?
Thanks for looking! Yes, you're seeing them as they should be.
Now I'm at home I'm seeing them correctly too so my original surmise that it was an apache server issue is wrong, the problem is with my Firefox at work. Well that puts me somewhere on the way to finding the problem.
I suspect it may be something to do with the FC6 installation being UTF-8 by default. I have set it to ISO-8859-1 in a few places but I think there must be some more places to fix.
Thanks again for the help.