M
M
Maxim Tyulpakov2015-07-31 10:58:22
PHP
Maxim Tyulpakov, 2015-07-31 10:58:22

The encoding of Russian letters in the connected php blocks has disappeared. How to do everything correctly?

I started splitting the page into php blocks in order to display them in the general index.php using include, and the encoding of the connected blocks fell off.
Do I need to write something in each block? How to do it right at all?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roma Naumenko-Vahnitsky, 2015-07-31
@MaXComp

In general, it is recommended to change the file encoding to utf-8, then add AddDefaultCharset utf-8 to the .htaccess file
And you can also write it in the HTML document (If HTML5)

D
Dmitry Threy, 2015-07-31
@more_cry

If you are using the Denwer package, then you should also change the following line in the usr\local\apache\conf\httpd.conf file :
me in due time.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question