f_atencia 0 Junior Poster in Training

Say I have the following XML variable:

var oResult = Server.CreateObject("MSXML2.DOMDocument.4.0");
    oResult.async = false;
    oResult.setProperty("ServerHTTPRequest", true);

How do I get the encoding to display in the header section? For example:

<?xml version="1.0" encoding="UTF-8"?>

when I run it in the browser?

Any help will be greatly appreciated.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.