Forum Moderators: open

Message Too Old, No Replies

Page Encoding Issue on centOS

         

jalmod

5:33 am on May 6, 2007 (gmt 0)

10+ Year Member



I have a web page that uses Arabic (Windows) for page encoding. After I installed centOS, this pages is forced to use Western European (ISO) encoding every time I access it, I have to change the encoding from the browser to be able to read the text.

However, I have same page installed in other servers but it works fine and display the correct encoding.

I would appreciate your help in this matter.

Robin_reala

10:05 am on May 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Presumably your web server isn’t sending the correct character encoding with the headers for the page. Which server are you running - Apache?

jalmod

10:40 am on May 6, 2007 (gmt 0)

10+ Year Member




Thank you for your reply.

I am running it on Linux centOS 4.4.

encyclo

12:38 pm on May 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld jalmod, you'll probably find that Apache is set up with a default charset set as a HTTP header. Comment out this line and the browser should respect the charset as defined in the document. Look for:

AddDefaultCharset On

or:

AddDefaultCharset ISO-8859-1

in httpd.conf.

jalmod

4:50 am on May 7, 2007 (gmt 0)

10+ Year Member



Great, this has solved the problem.

I Added Windows-1256 with AddDefaultCharset and worked now.

Thank you for your help.