There was a problem with the encoding or, damn it, understand with what.
Here is the code:
<?php header('Content-Type: text/html; charset=utf-8'); $user = $_GET['nick']; $settings = $_GET['settin']; $tes = str_replace("\q", "\n", $settings); file_put_contents($user.'.ini', $tes); ?> He receives information in Cyrillic and creates a file, in echo everything is fine, but question marks appear in the ini file it creates.
What to do? Help me please.