Icelandic language messed up in javascript alert box
alert, character-encoding, javascript
Solution
Today the web uses many international languages and has settled on using UTF-8 (a flavour of unicode) for character encoding. This is important.
You are using iso-8859-1, the MS Windows character set. If you have Word 2007 or 2010 you have the option of re-saving your text as UTF-8. If you've ever seen `?????` or `�` instead of text on someone's web site, it's due to the wrong encoding type.
<meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
Always use UTF-8 end-to end. Do not use 8859-1 or Windows 2151 encoding.
See:
The Absolute Minimum Every Software Developer Absolutely, Positively Must Know About Unicode and Character Sets (No Excuses!)
ISO-8859-1 vs UTF-8?
Character encodings and the beauty of UTF-8
Problem
i have an alert box which i want to show some icelandic text but its not showing it ``` <script> function check() { alert("Þú verður að vera skráð/ur inn til þess að senda skilaboð"); } </script> ``` it is showing the alert box but the text is messed up :( Þú verður að vera skráð/ur inn til þess að senda skilaboð any help please :(