Greetings dear Hash coders!

The problem is the following - the Contact Form (and in any other form on the site) sends data encoded in Windows-1252, despite the fact that the site itself is encoded in Windows-1251 + I specified an attribute at the form accept-charset = "windows- 1251 " Nothing helps. suhpay dot ru site (I don’t want to specify a link to the site so that search robots would not find it here and not bring relevant traffic to the site), the form at the bottom of the site. How do I know that the data goes to windows-1252? Using firebug, I looked at what data the form sent to the processor and recognized this code through Artemy Lebedev’s decoder, which was shown by CP1252 → CP1251.

The site is based on 1C Bitrix, the first site edited, works in Windows-1251 encoding.

  • 2
    It's up to you, but I would advise you to use utf-8 - alvoro

2 answers 2

Try to check the encoding of this file, notepad ++ , for example, and change in it, if that. Also check the http headers and html tag

<meta charset="кодировка"> 

(Soryan in comments can not write)

    maybe you have such file as config? It often indicates the encoding of the site. Or htaccess?

    setlocale (LC_ALL, 'en_US.CP1251'); date_default_timezone_set ('Europe / Moscow');

    mysql_connect ($ host, $ login, $ pass) or die ('Could not connect to the Database'); mysql_query ('SET Names cp1251'); mysql_select_db ($ db) or die ('The database does not exist!');

    Look, maybe there is something))

    • there is nothing else there, htaccess and other known methods have already tried - maler1988