Answer the question
In order to leave comments, you need to log in
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
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>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question