Solved

How do I make Apache 2.2 recognise my web pages written in windows charset-1252

Posted on 2008-06-10
8
324 Views
Last Modified: 2013-11-13
I have just signed up for the FastHosts dedicated server package that uses CentOS-5 (with Apache 2.2). This server package does not display all the characters of our web pages (created in Windows) correctly. This is a problem we have had before with a GlobalServers dedicated server. I understand the issue is the setting in AddDefaultCharset or AddCharset. Please could someone help me with the actual setting change in the httpd.conf file. Our webpages are created using windows-1252. I do not have the code snippet - but I need to instruct the FastHosts engineers with the setting change.

Many thanks
0
Comment
Question by:christineAH
[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
  • 5
  • 3
8 Comments
 
LVL 11

Expert Comment

by:bansidhar
ID: 21757523

AddDefaultCharset windows-1252
0
 

Author Comment

by:christineAH
ID: 21757650
Thank you for getting back - do you mean change the AddDefaultCharset setting to read AddDefaultCharset windows-1252 ?

Thanks

Christine
0
 
LVL 11

Accepted Solution

by:
bansidhar earned 500 total points
ID: 21758044
if you want to change the Charset of all the pages server by your web server then yes change it.
otherwise you can declare charset for each type of file in a <Files> block.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:christineAH
ID: 21758091
Thanks - I understand that. The FastHosts Linux engineer is not available until this afternoon and I urgently need to get the files to display correctly. I can get access via SSH (putty) to root (on the CentOS server IP address) - but I can't find the Apache httpd.conf file. Can you help me to (a) locate the file, and (b) make the necessary change/addition.

Thanks
0
 

Author Comment

by:christineAH
ID: 21758347
I have now edited the httpd.conf file (with the help of our Linux programmer) and changing the AddDefaultCharset to windows-1252 has worked (together with changing the default language from nl to en.

Many thanks for your help. I feel I am becoming a Linux programmer by degree...
0
 

Author Closing Comment

by:christineAH
ID: 31466036
The solution also involved changing the language from nl to en.
0
 
LVL 11

Expert Comment

by:bansidhar
ID: 21758558
sry, was out for lunch. Once you start working with linux you will never go back to windows. :=)
0
 

Author Comment

by:christineAH
ID: 21763005
That's true - but I have another question about HTAccess - can you help at all ?
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Progress

623 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