Character encoding

Discussion in 'Apache' started by mstrop, Sep 17, 2010.

  1. #1
    Hi,

    I have just installed new Apache on Win7 64bit, English front-end, Czech locals. Although I have done it before many times, this is for the frst time, when I am not able make character set working. I am have my pages saved in code page CP1250, but browser shows them in something looking like UTF8 (although view-> encoding says Central European (Windows)). The problem is same in IE8 and FF. I have tried this in Appache conf, but it's not working:

    AddCharset cp1250 .html
    AddDefaultCharset cp1250
    AddType 'text/html; charset=cp1250' html

    My test page looks like:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
    <meta http-equiv="Content-Language" content="cs">
    </head>
    <body style="margin: 0px; overflow: hidden;">
    ěščřžýáíé
    </body>
    </html>

    Please, could enybody help me?
     
    mstrop, Sep 17, 2010 IP