I have this in my header
<meta charset="utf-8">
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
and this in my htaccess:
# UTF-8 encoding
# ----------------------------------------------------------------------
# Use UTF-8 encoding for anything served text/plain or text/html
AddDefaultCharset utf-8
# Force UTF-8 for a number of file formats
AddCharset utf-8 .css .js .xml .json .rss .atom
My browser is google chrome.
When i use a javascript variable as output in the html a ‘ä’ becomes ‘ä’ ?
You should either set the correct charset in
<script>tag that includes your file or encode all symbols outside of plain ASCII range as unicode entities – \xNNNN and thus make file charset-neutral. Some minifiers, like Google Closure Compiler, can do this for you.