shekinskiy
Programmer
hi
i have a problem with html unicode character.
it runs correctly in html code, rise problem while it is between script tag and i need that the message should be between script tag.
second link, first statement and third statement in function shows alphabetic characters (not unicode), but second statement in function shows unicode characters as it is in code.
i have a problem with html unicode character.
it runs correctly in html code, rise problem while it is between script tag and i need that the message should be between script tag.
second link, first statement and third statement in function shows alphabetic characters (not unicode), but second statement in function shows unicode characters as it is in code.
Code:
<html>
<head>
<title>Alert</title>
</head>
<script>
function fnctn(aaa) {
alert(aaa); //no problem, show characters
alert("ığüşöçİĞÜŞÖÇ"); //problem, shows unicode character
alert("\u0131\u011F\u00FC\u015F\u00F6\u00E7\u0130\u011E\u00DC\u015E\u00D6\u00C7"); //no problem, show characters
}
</script>
<body>
<a href="#" onclick='javascript:fnctn("ığüşöçİĞÜŞÖÇ");'>Test</a>
<br/>
<a href="#" onclick='javascript:alert("ığüşöçİĞÜŞÖÇ");'>Test</a>
</body>
</html>