Vale anche se il charset della pagina è UTF-8:
codice:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<script language="javascript">
function aggiorna() {
document.getElementById('campo').value = "100.00 \u20AC";
}
</script>
<body>
<form>
<input id="campo" type="text" />
<input type="button" onclick="aggiorna()" value="Aggiorna"/>
</form>
</body>
</html>
da cui, nel tuo caso: (nota i doppi apici nella stringa invece dell'apice singolo!)
codice:
document.getElementById('SP').value="<?=number_format($sommaPremiV,2,',','.')?>\u20AC";
Prima che tu me lo chieda:
Dove ho trovato i codici, le entity, ecc..
HTH
Zappa