iao,
ho una pagina ASP che tramite il metodo TransformNodeToObject dell'oggetto MSXML2.DOMDocument trasforma con un XSL un XML in un XHTML.

L'XSL:

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xslutput indent="no" method="xml" />

<xsl:template match="/">
<test>-&#160;-€</test>
</xsl:template>

</xsl:stylesheet>

La pagina ASP richiamata restituisce lo spazio e il codice generato è:

<test>aaaaaaaa--</test>

Il risultato di questa pagina ASP lo voglio inserire via XMLHTTP in un DIV col seguente codice js:

function xmlhttp3(strURL, responsediv, responsemsg) {
// NOTA: è la funzione xmlhttp2 valida anche per FireFox
var xmlHttpReq = false;
var bComplete = false;

try { xmlHttpReq = new ActiveXObject("Msxml2.XMLHTTP"); }
catch (e) { try { xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP"); }
catch (e) { try { xmlHttpReq = new XMLHttpRequest(); }
catch (e) { xmlHttpReq = false; }}}
if (!xmlHttpReq) {
alert('Could not create xmlHttpReq object.');
return false;
}

xmlHttpReq.open('POST', strURL, true);
xmlHttpReq.setRequestHeader('Cache-Control', 'no-cache');
xmlHttpReq.setRequestHeader('Pragma', 'no-cache');

xmlHttpReq.onreadystatechange = function() {
if (xmlHttpReq.readyState == 4) {
bComplete = true;
updatepage(xmlHttpReq.responseText, responsediv);
}
else {
bComplete = false;
updatepage(responsemsg,responsediv);
}
}
xmlHttpReq.send('');

/*
* Firefox <= 2.0.0 doesn't fire onreadystatechange for synchronous requests.
* See http://lukav.com/wordpress/2007/04/1...calls-problem/
*/
var isGecko = (document.addEventListener) ? true : false;
try {
if (isGecko && xmlHttpReq.onreadystatechange == null) {
bComplete = true;
return updatepage(xmlHttpReq.responseText, responsediv);
}
}
catch (e) { return false; }
}

ma lo spazio (così come il simbolo di euro €) è rappresentato nel DIV con un punto di domanda sia con FireFox che con IE.

Dove sbaglio?

Grazie 1000.