Solved

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

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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Suggested Solutions

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.
Suggested Courses

752 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