J
J
JackShcherbakov2017-12-07 00:47:10
linux
JackShcherbakov, 2017-12-07 00:47:10

The PHP encoding in openserver has failed, what should I do?

The file is saved in utf-8 encoding in php format.
The encoding crashed after executing this script (the strtoupper and strtolower methods also do not work for me, in an attempt to fix this problem I created another one)

<?php 
  $text = mb_strtoupper('ПРИВЕТ');
  print $text;
?>

After that, all the scripts were with a broken coding! The entire Internet has been rummaged!
Here is the code:
<?php 
  $text = strtoupper('ПРИВЕТ');
  print $text;
?>

Outputs:
ЏРИВЕС
Further, even with a normal encoding, the strtoupper and strtolower methods do not work.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ronald McDonald, 2019-09-24
@P_Alexander

tar + cron, the classic of all classics.
You can rsync + cron.
Google is full of manov.

R
radeon221, 2017-12-07
@radeon221

set_charset('utf8') or something like this should be there

I
Ilya Bobkov, 2017-12-07
@heksen

You can also write in .htaccess: AddDefaultCharset UTF-8.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question