Reputation: 2027
It is possible to add non-latin characters in css "content" pseudo-element?
I have code like this:
&::after{
content:"(לחץ לחיוג)";
color: #00b1eb;
text-decoration: underline;
font-family: "Open Sans", "Narkis Block M F" !important;
font-size: 32px;
}
and on the browser I got this Gibberish:
if the string that in content: is English everything is ok:
there is a way to add Hebrew or not English characters to a content pseudo element?
Upvotes: 1
Views: 665
Reputation: 123397
You can print non-latin symbols using unicode sequences like in this codepen example
e.g.
body::before {
content:"(\05DC\05D7\05E5 \05DC\05D7\05D9\05D5\05D2)";
}
(I used this tool to make the conversion of your characters into UTF-8 units)
Upvotes: 5