I am developing a web page in Slovak. To use certain language characters, such as á or ž, I use this HTML code:
<html lang="sk"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head>
Now it works as expected, but only when I hardcode this text into an html file.
As soon as I use jquery to print them, it breaks and these characters are not displayed correctly.
$("#myDiv").html("áž");
Should I specify something in jquery or is there any other way to overcome this problem?
javascript jquery html
Matúš Dúbrava
source share