Consultor Eletrônico



Kbase P20820: & symbol is encoded as & when saving XML document via 4GL (UTF-8 encoding only)
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   12/01/2007
Status: Unverified

SYMPTOM(s):

& symbol is encoded as & when saving XML document via 4GL

Sets node value as € to produce Euro symbol, but is encoded as € so € is displayed not Euro symbol

Unable to change document encoding from default UTF-8

CAUSE:

This is a limitation of the DOM. Xerces does not, nor will it, support doing this. It is not possible to create a character reference with the DOM. It is only possible to directly insert text with characters as needed.

FIX:

Use the SAX-WRITER available in OpenEdge 10.1A or later. The SAX-WRITER includes the method WRITE-ENTITY-REF which will correctly write out character references.