text displaying funny on Linux Apache webserver

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
Mike Hanby [ Do, 13 Januar 2005 17:24 ] [ ID #590641 ]

Re: text displaying funny on Linux Apache webserver

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" <flakrat_N0-sp-am [at] hotmail.com> wrote in message
news:OfqMAEL$EHA.4092 [at] 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
Ronx [ Mo, 17 Januar 2005 19:44 ] [ ID #591328 ]

Re: text displaying funny on Linux Apache webserver

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.
>
Mike Hanby [ Di, 18 Januar 2005 16:01 ] [ ID #592916 ]

Re: text displaying funny on Linux Apache webserver

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.
>>
Mike Hanby [ Di, 18 Januar 2005 16:06 ] [ ID #592917 ]
Microsoft » microsoft.public.frontpage.extensions.unix » text displaying funny on Linux Apache webserver

Vorheriges Thema: Refresh Usage using production logs
Nächstes Thema: HOW TO's or Best Practice for FPSE