Solved

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

Posted on 2004-08-05
4
145 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
  • 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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now