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 :(

have you tried jquery like this

$(document).ready(function(){

alert('message');



})

check your editor , ensure that it's encoding is set to UTF-8 and check the browser encoding also ensure same encoding utf-8

Yes that was a UTF-8 encoding probelm. I was using Iso-8859-1. Corrected it and now its working fine. Thanks to all :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.