Networking Forums

Networking Forums > Computer Networking > Linux Networking > CentOS (RHEL) apache encoding

Reply
Thread Tools Display Modes

CentOS (RHEL) apache encoding

 
 
Andy
Guest
Posts: n/a

 
      02-21-2007, 08:24 PM
Hi folks,
somewhat of a new boy to this webserver lark but..

In a new installation of CentOS
(httpd-2.0.52-28.ent.centos4), the default encoding in
httpd.conf is
AddDefaultCharset UTF-8

We are a small UK based hosting company, customers are
having problems
with odd character being displayed on their websites
whenever they use
the UK pound sterling sign £ and a few others.

A colleage changed the httpd.conf line to
AddDefaultCharset BS_4730

This solved the immediate problem but caused some W3C
validation problems and broke an XMLHttpRequest() issue in
explorer with some sites.

I changed the value to
AddDefaultCharset ISO-8859-1
This solved the UK pound sign problem and the W3C validation
problem (unless the customer's web page specifically stated
<?xml version="1.0" encoding="UTF-8"?> Then it broke
validation AND odd character issues)

As you can guess, we are fumbling around in the dark here.

If it helps..... pstree on the local vc looks fine, but from
a windows machine using an ssh client the line drawing
characters are a mess. I have tried pstree -U and pstree -G,
they just cause a different mess.

I would love to think that the problems are related and one
simple locale option - or similar - will solve all of these
, but I'm out of ideas.

Any help would be greatly appreciated.
Cheers
Andy
 
Reply With Quote
 
 
 
 
Sebastian Nieszwiec
Guest
Posts: n/a

 
      02-24-2007, 12:47 PM
Andy napisał(a):
> Hi folks,
> somewhat of a new boy to this webserver lark but..
>
> In a new installation of CentOS (httpd-2.0.52-28.ent.centos4), the
> default encoding in httpd.conf is
> AddDefaultCharset UTF-8
>
> We are a small UK based hosting company, customers are having problems
> with odd character being displayed on their websites whenever they use
> the UK pound sterling sign £ and a few others.
>
> A colleage changed the httpd.conf line to
> AddDefaultCharset BS_4730
>
> This solved the immediate problem but caused some W3C validation
> problems and broke an XMLHttpRequest() issue in explorer with some sites.
>
> I changed the value to
> AddDefaultCharset ISO-8859-1
> This solved the UK pound sign problem and the W3C validation problem
> (unless the customer's web page specifically stated <?xml version="1.0"
> encoding="UTF-8"?> Then it broke validation AND odd character issues)
>
> As you can guess, we are fumbling around in the dark here.
>
> If it helps..... pstree on the local vc looks fine, but from a windows
> machine using an ssh client the line drawing characters are a mess. I
> have tried pstree -U and pstree -G, they just cause a different mess.
>
> I would love to think that the problems are related and one simple
> locale option - or similar - will solve all of these , but I'm out of
> ideas.
>


You should set
AddDefaultCharset Off
then Apache won't enforce necoding and then browsers will read encoding
from xml header or from meta in xhtml/html.



--
greetings
Sebastian

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
config. file to add a static route to on RHEL / CentOS. Rahul Linux Networking 7 10-07-2010 07:37 PM
encoding after authorization 802.1x ted Wireless Internet 0 08-21-2008 10:33 AM
mq_open() in RHEL Workstation subramanian100in@yahoo.com, India Linux Networking 0 05-27-2007 03:49 AM
tethereal in RHEL 4 dorantes@mac.com Linux Networking 0 03-21-2006 05:45 PM
dail-up ISP login can't do W3C encoding. not@top-post Linux Networking 1 12-22-2004 05:42 PM



1 2 3 4 5 6 7 8 9 10 11