[Migrated content. Thread originally posted on 16 May 2011]
Hi, i write an xml using the c$xml API encoding it in "UTF-8".call "c$xml" using CXML-NEW-PARSER
giving wh-descr-parser.
if we-runtime-major-version >= 8
call "C$XML" using CXML-SET-ENCODING
wh-descr-parser
"UTF-8"
end-if.It happens that when i write in it some accented character like "à", the final xml results in an invalid format and parsing it with "C$XML" CXML-PARSE-FILE returns CXML-PARSE-ERROR. Also, it is not possible to open the xml with a browser (chrome or firefox) as it says that the xml has a wrong format.
i write the accented character with the following
call "c$xml" using CXML-ADD-CHILD
wh-gsdx-doc
w78-gsdx-file
w-str
giving wh-gsdx-file. where w-str is a pic x(250) and is the data string, wh-gsdx-doc is the handle and w78-gsdx-file is a level 78 constant.
Am i missing something when writing?





