my JS-File is UTF-8 encoded, my html document also.
I also have this in the head part of the HTML:
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8" />
Every umlaut that I typed in the HTML is displayed properly.
But if I try to set a new value with $('#test').text('Test öäü')
I get Test öäü
.
How is this possible? Even console.
debug/log and alert()
display the same.
I also tried to set the charset
attribute on my script-tag, but nothing worked.
Can anybody help me with this issue?