LxCenter HyperVM & Kloxo Support

Forum



Members   Search      Help    Register    Login    Home
Home » Archive » LxAdmin » Technical Help » Character set in Meta header
Character set in Meta header [message #30548] Thu, 15 May 2008 00:30 Go to next message
com2 is currently offline com2  Spain
Messages: 1119
Registered: August 2007
Location: Spain
Senior Master
Developer
I just transferred a client to LxAdmin, but now the foreign characters come out wrong. The meta in the pages says

<meta http-equiv=Content-Type content="text/html; charset=windows-1252">


While the HTTP header as sent by the server is UTF-8. The client is using Word to maintain his website, so I don't want to change all his pages to UTF-8. How can I force Apache to recognise the meta in the pages?
Re: Character set in Meta header [message #30552 is a reply to message #30548] Thu, 15 May 2008 02:13 Go to previous messageGo to next message
com2 is currently offline com2  Spain
Messages: 1119
Registered: August 2007
Location: Spain
Senior Master
Developer
I found the solution myself already. It is solved by putting:

.htaccess


AddDefaultCharset Off



in the document root of the site. This re-enables meta recognition.
Re: Character set in Meta header [message #90972 is a reply to message #30552] Mon, 14 November 2011 13:17 Go to previous message
NFec is currently offline NFec  Germany
Messages: 5
Registered: September 2010
Location: Germany
Member
An other solution is to simply comment out the 'DefaultCharset UTF-8' line at /etc/httpd/conf/httpd.conf

That's is and every website will use auto recognition.

The problem of this solution is that in case you run 'yum update' and an update of httpd is deployed you may need to comment it out again.
Previous Topic:XML-RPC
Next Topic:PHP BC math support
Goto Forum:
  


Current Time: Sat May 18 23:07:15 EDT 2013

Total time taken to generate the page: 0.01207 seconds
.:: Contact :: Home :: Privacy ::.

Click here to lend your support to: LxCenter and make a donation at www.pledgie.com !

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software