logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



Charset

 
Post new topic   Reply to topic    Apache Forum Index -> Apache



View previous topic :: View next topic  
Author Message
Genok



Joined: 09 Jan 2006
Posts: 21
Location: Russia

PostPosted: Sat 04 Feb '06 8:38    Post subject: Charset Reply with quote

Newbie question =)))

How can I change default charset? What conf should I edit? Sorry for this stupid question =))
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 2580
Location: Hilversum, NL, EU

PostPosted: Sat 04 Feb '06 13:46    Post subject: Reply with quote

See http://httpd.apache.org/docs/2.2/mod/core.html#adddefaultcharset


Steffen
Back to top
Genok



Joined: 09 Jan 2006
Posts: 21
Location: Russia

PostPosted: Fri 10 Feb '06 12:05    Post subject: Reply with quote

Ok. I've added line AddDefaultCharset WINDOWS-1251 to httpd.conf but the same result - the charset is still iso8859. Whats wrong Sad
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6255
Location: Germany, Next to Hamburg

PostPosted: Fri 10 Feb '06 12:38    Post subject: Reply with quote

Did you set a <meta.... tag with a different charset? Did you set a <meta... tag ? If not some browsers set a charset by default which is mostly wrong Wink

<meta http-equiv="content-type" content="text/html; charset=WINDOWS-1251">
Back to top
Genok



Joined: 09 Jan 2006
Posts: 21
Location: Russia

PostPosted: Fri 10 Feb '06 13:33    Post subject: Reply with quote

James Blond wrote:
Did you set a <meta.... tag with a different charset?
<meta http-equiv="content-type" content="text/html; charset=WINDOWS-1251">


I should put this line in every page of my site?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6255
Location: Germany, Next to Hamburg

PostPosted: Fri 10 Feb '06 14:25    Post subject: Reply with quote

If it works with it the answer is yes!

i.e.
Code:

<html><head><title>my Title for this page</title>
<meta http-equiv="content-type" content="text/html; charset=WINDOWS-1251">
</head>
<body>
...
</body></html>


Does the browser show the pages correcly with the meta set charset?
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1