D
D
dom1n1k2017-11-13 12:52:44
Pug
dom1n1k, 2017-11-13 12:52:44

Pug sometimes corrupts unicode characters. Has anyone come across?

Faced with the fact that Pug occasionally spoils individual Russian letters. Just in the middle of the Russian text, two characteristic Unicode questions appear. And after editing the file and regenerating the template, everything is restored by itself.
This happens infrequently and I didn’t notice any pattern, so I can’t offer an example to reproduce the problem.
Someone faced?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zamkevich, 2017-11-19
@zamkevich

Faced. The problem went away after fixing the structure of the document.
Check the generated html only in your editor. Since, for example, chrome fixes invalid html.
Should be:

<!DOCTYPE html>
<html lang="ru">
  <head>
    <!-- Стили, мета описание, скрипты необходимые на старте -->
  </head>
  <body>
    <!-- Тело страницы -->
  </body>
</html>

Not the fact that the problem was in this, but the fix of the structure and the disappearance of glitches coincided.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question