text displaying funny on Linux Apache webserver
text displaying funny on Linux Apache webserver
am 13.01.2005 17:24:18 von Mike Hanby
Howdy y'all,
I'm using MS Frontpage 2003 to create a site that will be hosted on a
Linux Apache server.
I've published the site over to the server to see how it looks.
The first problem I've run into is, the following 2 characters don't
display properly (their may be more, but these two I've noticed)
Original Char Displays As
============= ===========
' (apostrophe) ? (a question mark)
© (copyright) ? (a question mark)
Any idea why these two commonly used text characters don't display properly?
BTW, if I open the page locally on my Windows XP machine, or if I host
them locally on my XP machine with an Apache server, the characters
display properly.
Thanks,
Mike
Re: text displaying funny on Linux Apache webserver
am 17.01.2005 19:44:14 von Ronx
Probably, the HTTP headers produced by the Apache server include a line
similar to:
Character Set - UTF8
which overwrites any character set defined in the page.
With this character set any characters with an ASCII code greater than 127
will display as a "?"
Such characters must be entered in HTML as character or numeric references,
example:
Copyright = ©
Apostrophe = ' (ampersand gate 3 9 semicolon)
"Smart" Apostrophe = ’ (ampersand gate 8 2 1 7 semicolon)
See http://www.w3schools.com/html/html_entitiesref.asp for a full list of
these entities.
--
Ron Symonds (Microsoft MVP - FrontPage)
Reply only to group - emails will be deleted unread.
"Mike Hanby" wrote in message
news:OfqMAEL$EHA.4092@TK2MSFTNGP09.phx.gbl...
> Howdy y'all,
>
> I'm using MS Frontpage 2003 to create a site that will be hosted on a
> Linux Apache server.
>
> I've published the site over to the server to see how it looks.
> The first problem I've run into is, the following 2 characters don't
> display properly (their may be more, but these two I've noticed)
>
> Original Char Displays As
> ============= ===========
> ' (apostrophe) ? (a question mark)
> © (copyright) ? (a question mark)
>
> Any idea why these two commonly used text characters don't display
> properly?
>
> BTW, if I open the page locally on my Windows XP machine, or if I host
> them locally on my XP machine with an Apache server, the characters
> display properly.
>
> Thanks,
> Mike
Re: text displaying funny on Linux Apache webserver
am 18.01.2005 16:01:34 von Mike Hanby
Aha, you were correct.
I changed the following in httpd.conf from
AddDefaultCharset UTF-8
to
AddDefaultCharset ISO-8859-1
restarted httpd and now ' and copyright show up correctly.
I wouldn't mind leaving UTF-8 and using © for the copyright, but
having to substitute ' for every apostrophy will be a pain.
Ronx said the following on 01/17/2005 12:44:
> Probably, the HTTP headers produced by the Apache server include a line
> similar to:
>
> Character Set - UTF8
>
> which overwrites any character set defined in the page.
>
> With this character set any characters with an ASCII code greater than 127
> will display as a "?"
> Such characters must be entered in HTML as character or numeric references,
> example:
> Copyright = ©
> Apostrophe = ' (ampersand gate 3 9 semicolon)
> "Smart" Apostrophe = ’ (ampersand gate 8 2 1 7 semicolon)
>
> See http://www.w3schools.com/html/html_entitiesref.asp for a full list of
> these entities.
>
Re: text displaying funny on Linux Apache webserver
am 18.01.2005 16:06:43 von Mike Hanby
Does anyone know of a way to force Frontpage 2003 create pages that are
UTF-8 safe? Maybe it's smart enough to automagically use entity-names
and numbers for characters that are above 127 in the ASCII set?
Mike Hanby said the following on 01/18/2005 09:01:
> Aha, you were correct.
> I changed the following in httpd.conf from
> AddDefaultCharset UTF-8
> to
> AddDefaultCharset ISO-8859-1
> restarted httpd and now ' and copyright show up correctly.
>
> I wouldn't mind leaving UTF-8 and using © for the copyright, but
> having to substitute ' for every apostrophy will be a pain.
>
> Ronx said the following on 01/17/2005 12:44:
>
>> Probably, the HTTP headers produced by the Apache server include a
>> line similar to:
>>
>> Character Set - UTF8
>>
>> which overwrites any character set defined in the page.
>>
>> With this character set any characters with an ASCII code greater than
>> 127 will display as a "?"
>> Such characters must be entered in HTML as character or numeric
>> references, example:
>> Copyright = ©
>> Apostrophe = ' (ampersand gate 3 9 semicolon)
>> "Smart" Apostrophe = ’ (ampersand gate 8 2 1 7 semicolon)
>>
>> See http://www.w3schools.com/html/html_entitiesref.asp for a full
>> list of these entities.
>>