function error(inString, outString, msg) { var dispIn = ""; var dispOut = ""; var i; for (i = 0; i < inString.length; ++i) {
dispIn += " x" + inString.charCodeAt(i).toString(16);
} if (!outString.length) {
dispOut = "<empty>";
} else { for (i = 0; i < outString.length; ++i) {
dispOut += " x" + outString.charCodeAt(i).toString(16);
}
}
dump('"' + dispIn + '" ==> "' + dispOut + '"\n');
do_throw("security risk: " + msg);
}
function run_test() { var ScriptableUnicodeConverter = Components.Constructor( "@mozilla.org/intl/scriptableunicodeconverter", "nsIScriptableUnicodeConverter"
);
var converter = new ScriptableUnicodeConverter();
converter.charset = charset;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.