title: xml encoding changing from 'utf-8' to 'windows1252'
body: <p>I have some sample data in XML format</p>
  
  <pre><code>   &lt;?xml version="1.0" encoding="UTF-8"?&gt;
       &lt;Values version="2.0"&gt;
       &lt;record name="header" javaclass="com.wm.util.Values"&gt;
           &lt;value name="Id"&gt;&lt;/value&gt;
            &lt;value name="legalEntity"&gt;27&lt;/value&gt;
                 &lt;value name="priority"&gt;&lt;/value&gt;
                &lt;value name="requestor"&gt;&lt;/value&gt;
               &lt;value name="startDate"&gt;2017-02-21T00:37:30&lt;/value&gt;
  </code></pre>
  
  <p>I am using oracle 10g database
  and I want to change the "startDate" to any date, and for that, I am using an update query</p>
  
  <p>query-UPDATE orders set data_content= UPDATEXML(XMLTYPE.createXML(data_content),'/Values/record/value[@name="startDate"]','  2017-02-24T00:37:30').getClobVal() WHERE name=7;</p>
  
  <p><strong>But, the above query is also changing the encoding of the XML from utf-8 to windows1252</strong> </p>
  
  <p>xml after update query-</p>
  
  <pre><code>         &lt;?xml version="1.0" encoding="WINDOWS-1252"?&gt;
             &lt;Values version="2.0"&gt;
            &lt;record name="header" javaclass="com.wm.util.Values"&gt;
                   &lt;value name="Id"&gt;&lt;/value&gt;
                       &lt;value name="legalEntity"&gt;27&lt;/value&gt;
                         &lt;value name="priority"&gt;&lt;/value&gt;
                         &lt;value name="requestor"&gt;&lt;/value&gt;
                          &lt;value name="startDate"&gt;2017-02-24T00:37:30&lt;/value&gt;
  </code></pre>
  
  <p>can anyone tell me why it is happening and how to avoid it?</p>