Did the job on the book O'REILLY "Learning PHP and MySQL"

There is a simple form

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html><head><meta charset="utf-8"></head> <body><form method="post" action="mailto:owen@aliensubductedme.com?subject=ΠŸΠΎΡ…ΠΈΡ‰Π΅Π½ΠΈΠ΅ людСй" enctype="text/plain"> <label for="firstname">Имя:</label> <input type="text" id="firstname" name="firstname"/><br/> <label for="sunname">Ѐамилия:</label> <input/ type="text" id="sunname" name="sunname"><br/> <label for="more">Π”ΠΎΠΏΠΎΠ»Π½ΠΈΡ‚Π΅Π»ΡŒΠ½Π°Ρ информация</label> <textarea id="more" name="more"> </textarea><br/> <input type="submit" value="Кнопка подтвСрТдСния" name="submit"/> </form></body> 

When I open this file in Firefox and send an email using Mozilla Thunderbird or Microsoft Outlook 2010, everything is displayed normally.

Link: http://cs619818.vk.me/v619818687/15db/JmfittOIROA.jpg

But it is worth trying to send via Chrome or Opera how problems arise with the encoding (the subject of the letter is displayed correctly).

Link: http://cs619818.vk.me/v619818687/15e3/EeBgnaJyRCo.jpg

What is the reason for this and how to do it so that the letter would be sent to Chrome and Opera normally.

PS In the .htaccess file there is an entry "CharsetDisable on CharsetDefault utf-8 CharsetSourceEnc utf-8 AddDefaultCharset utf-8"

    1 answer 1

    Try to add to the beginning of the document.

     -*-coding: utf-8 -*- 

    or save in utf-8 format