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

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
christineAHAsked:
Who is Participating?
 
bansidharConnect With a Mentor Commented:
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
 
bansidharCommented:

AddDefaultCharset windows-1252
0
 
christineAHAuthor Commented:
Thank you for getting back - do you mean change the AddDefaultCharset setting to read AddDefaultCharset windows-1252 ?

Thanks

Christine
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
christineAHAuthor Commented:
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
 
christineAHAuthor Commented:
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
 
christineAHAuthor Commented:
The solution also involved changing the language from nl to en.
0
 
bansidharCommented:
sry, was out for lunch. Once you start working with linux you will never go back to windows. :=)
0
 
christineAHAuthor Commented:
That's true - but I have another question about HTAccess - can you help at all ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.