Answer the question
In order to leave comments, you need to log in
How to output Cyrillic?
There is an elementary code:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<form action="index.php" >
<label>Введите строку: <input name="string" type="text"></label>
<input type="submit" value="Проверить">
</form>
<?php
$string = $_REQUEST["string"];
echo $string[0];
?>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
<php?
=> <?php
Unless you're going to get the first character of the string, of course.
php.ini: default_charset="UTF-8"
httpd.conf: AddDefaultCharset utf-8
mysql/my.cnf:
[client]
loose-default-character-set=utf8
[mysql]
loose-default-character-set=utf8
[ mysqld]
collation-server=utf8_unicode_ci
loose-default-character-set=utf8
character-set-server=utf8
init-connect='SET NAMES utf8'
skip-character-set-client-handshake
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question