Solved

Web page showing question marks (?) instead of bullets or apostrophes

Posted on 2007-04-02
6
453 Views
Last Modified: 2008-02-01
I am not sure what is going on exactly but there is a web server (apache 2.2.3 + php 4.4.4) which is displaying some characters (specifically apostrophes ' and bullets •) as question marks instead of the appropriate character.  The pages have the bullet (•) character in them instead of using •  I know I can change it to • instead of specifically using the bullet (•) character, but the page was exported from PowerPoint as a HTML document so the next time it gets created I would have to manually edit each slide by hand.  I am guessing that there is something wrong with the encoding, but I am not sure what.  I have a development web server (apache 2.0.50 + php 4.3.8) that displays the characters correctly.

Any ideas?
0
Comment
Question by:bdhtechnology
6 Comments
 
LVL 29

Accepted Solution

by:
TeRReF earned 400 total points
ID: 18839244
Compare the apache config files of the 2 servers and see if this directive is set
AddDefaultCharset

If so, do they differ?
0
 
LVL 1

Author Comment

by:bdhtechnology
ID: 18839320
Server that is working has:
AddDefaultCharset Off

Server that isn't working had a line in the config file for it, but commented out.  So I added:
AddDefaultCharset Off

Restarted apache2 and still the same thing.  Any other ideas?
0
 
LVL 19

Expert Comment

by:BrianGEFF719
ID: 18840499
add this line to your <head> section in the file.

<meta http-equiv="content-type" content="text/html; charset=UTF-8">
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 15

Assisted Solution

by:samri
samri earned 100 total points
ID: 18841565
bdhtechnology,

after you had changed the config, and restarted the server --- sometimes when you refresh the page from the web browser, it may still got the content from cache.  try to clear your browse cache, or hit shift-refresh.

just some thought.
0
 
LVL 1

Author Comment

by:bdhtechnology
ID: 18845505
So it apparently just needed 'AddDefaultCharset Off' set, even though it wasn't set before and is suppose to default to off.  Once I cleared the cache, the question marks went away.  I figured refreshing the page would have been good enough, but I guess not.  Thanks for the help!
0
 
LVL 29

Expert Comment

by:TeRReF
ID: 18846412
You're welcome :)
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Learn by example how to specify CSS selectors for Selenium WebDriver test automation software.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

821 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