I am trying to update document.title using Javascript. This works great, but now I want to insert the ü symbol in the heading, which gives me a question mark in the place where ü is supposed to be.
Here is my code (I skipped the rest of the header for clarity):
document.title = '\u2019 - \u252';
The strange thing is that part \ u2019 really works and gives me a quote, as expected. By the way, my encoding is UTF-8.
What am I doing wrong here?
Evert source
share