httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] Special chars question
Date Thu, 02 Dec 2004 16:41:18 GMT
On Thu, 2 Dec 2004 16:16:41 -0000, oxfordmusic.net
<lists@oxfordmusic.net> wrote:
> i have recently migrated a site from Apache 1.3.?? / PHP 4.3.2 / MySQL
> 3.23.54 to a RHEL3 box running Apache 2.0.46 / PHP 4.3.2 / MySQL 3.23.58. i
> have started having problems with HTML entities which i did not have on the
> old box. now the versions of PHP and MySQL are very close so i'm assuming
> there is something in the Apache config which is changing this.
> basically, i'm reading text from the database which contains characters in
> their pure form (£) as opposed to HTML entities (&pound;). on the old
> machine, this would be displayed fine. on the new machine, they are
> displayed as a question mark.
> is this a simple change to my conf files?
> i know that technically, i should convert all special characters to HTML
> entities but there are a thousand places in my scripts where text from a DB
> is displayed and i was hoping to make the change via the conf files.

Check the AddDefaultCharset directive in httpd.conf.  It was probably
set to iso-8859-1 on your old box.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message