IE11 and Chrome different encoding

To be honest I've never been understanding encoding and such very well. Please help me out here. This piece of html:

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
    <a href="javascript:alert('%C3%B6');">Click</a>
</body>
</html>

In Chrome it displays: ö that's what I'm expecting.

In IE it displays: ö and that's not expected and not the desired outcome.

How can I change my code to get the browsers to behave the same way?

Answers


You could try alerting the character itself, and not just the code, like: alert("ö")


Need Your Help

Starting a JFileChooser at a specified directory and only showing files of a specific type

java image swing jfilechooser filefilter

I have a program utilizing a JFileChooser. To be brief, the full program is a GUI which allows users to manipulate PNGs and JPGs. I would like to make it so that the JFileChooser instantly opens to...

move to another tab while async request being sent ios

ios asynchronous nsurlconnection nsurlrequest

I have an app with tabbarcontroller. As of now when an async request is being sent on one of the tabs, the user cannot move to another tab. I want my app to function such that when the request is b...