Kirilica in javascript



  • Why is the Cyrillian text that was written in javascript code displayed by squares?

    var anwer = prompt('Вы уверины что хотите сюда нажать?');
    

    if (anwer) {
    document.write(anwer);
    }
    else {
    document.write('он стеснительный');
    }



  • What's with the staircase? We need windows-1251.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    <html>
     <head>
      <meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
      <title>Ваш тайтл</title>
     </head>
     <body>
    тут Ваш скрипт
     </body>
    </html>
    

Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2