Solved

Apache2 displays "?" instead of characters such as . ' or even - in selected cases.

Posted on 2004-08-05
4
151 Views
Last Modified: 2013-12-06
Hi
I recently moved a couple of websites from Apache 1.3.x to Apache2.x

On some of the sites there are "posting" systems, where users copied text into a text area and then posted the content to the website.

Previously, it seems that users copied straight from MS Word documents (including formatting such as new lines, paragraphs and even bullets etc) and the display was in most cases fairly close to correct. I did see one or two "?" in the webpages for things that Apache could not recognise, however these characters always "converted" correctly   ' , : , - , . .
 Now, after the move to Apache2, many of the articles that previously displayed correctly, now have "?" in place of some full-stops, hyphens and bullets.

I've looked at the httpd.conf in the hope that by some accident the old Apache loaded a diferent/extra character set than the new Apache, but to my horror, Apache2 seems to have even more "support" for character sets than Apache 1.3.x, so it seems this is not the cause of the strange display.

Does anyone have similar experience and perhaps a workaraound? ( I'm not looking for a perfect "conversion" since I know well it is not possible to simply "copy & paste" a Word doc and retain all layout and functions; we have instructed the users NOT to copy & paste from Word, but to type the text by hand and use the formatting tools of the posting box to get things like Bold, Italics, bullets etc. but you know how users are, if they find a "shortcut" that partially works, they will use it, and then complain if it doesn't deliver perfect results...)

Thanks for any help.
 
0
Comment
Question by:psimation
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 8

Expert Comment

by:da99rmd
ID: 11726987
Hi psimation,
what kind of locale do you have in the shell you are stating apache with or have set apache to in .conf.
UTF-8 or ISO-8859-* or something else strange ?

/Rob
0
 
LVL 17

Author Comment

by:psimation
ID: 11729163
HI da99rmd

How would I be able to check that?

To my knowledge, I have not specifically set anything. It's basically "out-of-the-box" installations with default options.

I did see those character sets as part of the list of (supported?) character sets inside httpd.conf, but from the listing, it doesn't seem like one of them is set as "default", I get the impression that they are just all "available"?

0
 

Accepted Solution

by:
pwherry earned 125 total points
ID: 11744533
Have a look at your httpd.conf file. Some installations (notably Fedora Core 2) set UTF-8 as the default character set, which will result in the problems you've described.

I'll bet you'll find a line that looks like this:

AddDefaultCharset UTF-8

Comment it out (# at the beginning of the line), then run "apachectl restart" and see if that resolves your problem.

Phil
0
 
LVL 17

Author Comment

by:psimation
ID: 11745586
Great stuff, thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question