P
P
Pavel2015-09-06 17:47:11
JavaScript
Pavel, 2015-09-06 17:47:11

How to fix encoding in gulp when including html file?

I use the plugin https://www.npmjs.com/package/gulp-file-include
included a simple file in which the list

<ul>
  <li>Главная</li>
  <li>О нас</li> 
</ul>

so the whole thing is displayed as �������
the encoding on the page is utf-8 , in the file too. And when connected, here is such an incomprehensible transform. Who will tell you how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Gatilin, 2015-09-06
@gatilin222

And try to wrap all this happiness in a standard structure:

<html lang="ru">
    <head>
        <title></title>
        <meta charset="UTF-8">
    </head>
    <body>
    <ul>
      <li>Главная</li>
      <li>О нас</li> 
    </ul>
    </body>

    </html>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question