G
G
Grisha Nikolsky2015-10-22 18:33:41
PHP
Grisha Nikolsky, 2015-10-22 18:33:41

How to change encoding to UTF-8?

How can I change the encoding to display Russian characters?
Already tried to prescribe the meta tag and PHP header. Did not help.
The code:

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <?php header("Content-type: text/html; Charset=utf-8"); ?>
    <link rel="stylesheet" type="text/css" media="all" href="<?php echo bloginfo('template_url'); ?>/css/header.css">
    <title>[CS:GO Camp]</title>
    <?php wp_head(); ?>
</head>
<body>
    <div class="div-menu">
        <a href="#"><img src="<?php echo bloginfo('template_url'); ?>/Logo.png" alt="Sorry" class="super"></a>
        <ul class="ul-menu">
            <a href="#"><li>Home</li></a>
            <a href="#"><li>About</li></a>
            <li>
                Tournaments
                <ul>
                    <a href="#"><li>5 VS. 5</li></a>
                    <a href="#"><li>2 VS. 2</li></a>
                    <a href="#"><li>1 VS. 1</li></a>
                </ul>
            </li>
            <a href="#"><li>Contacts</li></a>
        </ul>
    </div>
</body>
</html>

Thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Karpan, 2015-10-22
@VoxelGod

Open notepad++, paste the code there, select the code completely, press "encodings - convert to utf8" in the menu, save, check.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question