K
K
kim1232020-05-09 22:42:23
css
kim123, 2020-05-09 22:42:23

How to remove krakozyabry in Russian content of pseudo-elements?

Sometimes, during quick transitions on the pages of the site, instead of Russian letters, krakozyabry appears in pseudo-elements, how to fix it? It rarely happens, but it does happen. Once in 15 times it can slip.
5eb70787b3758826510837.png
In this case, on the left is content: 'On' and on the right is content: 'Off'

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Gafarchik, 2020-05-09
@Gafarchik

UTF-8 encoding

<head>
  <meta charset="utf-8">
 </head>

or so: before all the code)
@charset "windows-1251";

A
Aetae, 2020-05-09
@Aetae

Obviously, the css encoding must match the page encoding, and the server must also indicate the correct encoding when serving files. If this happens every other time, then you are using either several servers, one of which is crooked, or crooked caching.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question