P
P
PRAIT2018-02-09 09:34:00
PHP
PRAIT, 2018-02-09 09:34:00

How to change the encoding in brackets when processing the form?

Hello friends, I'm facing a problem.
The fact is that the form handler produces scribbles when encoding UTF-8 in the brackets editor.
After filling out the form in Cyrillic
5a7d401dc6827807651058.png
Here is what the php handler produces
5a7d402c4d5a4925984393.png
In php code:
<?php
echo $_GET['name'];
?>
Everywhere the encoding is utf-8
In Latin, everything is displayed as it should.
5a7d40a25b9a6908965387.png
Who can come across this? What could be the problem? :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OKyJIucT, 2018-02-09
@OKyJIucT

<?php

header('Content-Type: text/html; charset=utf-8');

echo $_POST['name'];

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question