Consultor Eletrônico



Kbase P3870: When using -cpstream and -cpinternal, writing an XML document yields incorrect results
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Verified

SYMPTOM(s):

Creating an XML document

The '-cpstream' and '-cpinternal' startup parameters are using a value of iso8859-15

The data in the XML document (after it has been written to disk) is different than the data that was added to the XML document

CAUSE:

XML documents are created using a default encoding of UTF-8 unless the encoding attribute is modified so, in this scenario, the data was converted from the iso8859-15 code page to the UTF-8 code page

FIX:

To ensure that the same code page is used in the XML document, modify the encoding of the XML document as follows prior to adding any nodes:


handle_to_xml_doc:ENCODING = <same encoding as per session>