Why when I set a form with the numeric character reference of an unicode with javascript the character is not converted to its correct representation, but when I set the form directly from the html it works?
<html>
<head>
<script language="javascript">
function test()
{
document.InputForm.TextBox.value = 'ח';
}
</script>
</head>
<body>
<form name="InputForm" ID="Form1">
<input id="Text1" type="text" name="TextBox" style="color: 000000; position: absolute; left: 0; top: 200; width: 600px; " value="ח">
</input>
</form>
<form>
<input TYPE="button" Value="Button1" onClick="test();">
</form>
<form>
<input TYPE="button" Value="Button2" onClick="document.InputForm.TextBox.value = 'ח'">
</form>
</body>