X
X
XpeH Petrovich2015-04-28 11:20:34
PHP
XpeH Petrovich, 2015-04-28 11:20:34

What's wrong with the encoding???

Maybe, of course, the morning has such an effect and I forgot something very important, but why is this

print '
            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
            <html>
                <head>
                    <META charset=utf-8">
                </head>
                <body>
                    <span style="color: red">Ошибка:</span> '.$msg[$code].'
                </body>
            </html>';

printed in krakozyabry? file in utf, in an array variable, but there is also like utf. What am I doing wrong???

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Grechushnikov, 2015-04-28
@uakoB

.htaccess ->
addDefaultCharset utf-8

K
kompi, 2015-04-28
@kompi

Some places that can affect the encoding in the file:
- local/remote editor;
- copying to a remote host via FTP;
- web server settings;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question