var x = new TextDecoder()
var r = x.decode(String(msg))
alert(r)
querySelectorAll( '#' + id)
$x = file_get_contents('php://input');
$dir ='./раздел1/';
$str1 = iconv('cp1252', 'cp1251', $x);
file_put_contents( $dir . '1.txt', $str1 );