I have posted questions about character sets here before.. Here is yet another one.
I'm testing the function "window.onbeforeunload()" wich is supposed to warn the user if he/she is about to exit my page somehow. It works fine, but there is a problem.
When i enter åäö-characters in the returnvalue (the text that will be shown on the popup-box)
it doesn't interpret the characters correctly but instead show the classical black diamond with a questionmark inside.
I started using utf-8 trough the whole project since I thought that it was capable of handling all characters there are. I have this in the <head> on the php-page.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
Since it didn't work i tried to find a solution..
But I read that if you add charset declaration to it it tells the browser wich character encoding to use.. so I rewrote it to look like this:
The utf-8 doesn't work either.. However.. if i rewrite it to use ISO-8859-1 instead
It also work if I just set the header of the php-file to ISO-8859-1
Wich leads me to think that utf-8 can't handle åäö in a nice manner.
Or have i missed something??
I really need to get this straight...