P
P
Pavel2019-04-23 08:40:21
PHP
Pavel, 2019-04-23 08:40:21

How to open a site in w-1251 encoding?

I'm trying to open an old site, it is written in windows-1251 encoding, the table in mysql is also windows-1251. But instead of the text one questions.
I am using openserver. The code in phpstorm is readable and is also defined as 1251.5cbea50db64ca783615315.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Tom Nolane, 2019-04-23
@tomnolane

https://ru.wikipedia.org/wiki/Windows-1251
ps shapka.php is a tin....
pss your server gives in UTF-8 format , take a closer look at the right side in the
psss screenshot, use UTF-8 . It's good to be perverted

P
Pavel, 2019-04-23
@sidiqi

The issue is resolved, the hosting had a php version and Apache 5.2 installed the same one and it helped

V
Viktor Taran, 2019-04-23
@shambler81

php.ini
mbstring.internal_encoding=cp1251

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question