Affichage des caractères Unicode

Bonjour,

I would like the character ĉ (c with a circumflex accent) to display in the input "entree" when clicking the button [ĉ]. But only the letter "c" shows up without the accent.

Here is the code:

-----------------------------------------------------
<html>
<head>
<script language="javascript">
function ccirc()
{
recup=document.f.entree.value;
carac = "ĉ";
document.f.entree.value = recup + carac;
}

</script>
</head>
<body>

<form name="f">
<input type="button" name ="c" value="ĉ" onclick="ccirc()"><br>
<input name="entree" type="text">
</form>

</body>

----------------------------------------

I must be doing something wrong. Thank you for your help.
Configuration: Windows 7 / Opera 9.80

2 answers

  1. Hello and thank you for your response.
    &ccirc; does not work.
    0