Hi,
I am generating an XML file from a custom smartform and saving into a folder in the application server. When the file is written into the application server, the Danish characters are not coming properly. Probaly this is a issue related to the codepage that the XML file is using. I am using the following technique to write the XSF data returned by the Smartform auto generated funciton module into the application server. The generated xml file starts with something like <?xml version="1.0"?> and it seems that the encoding header attribute is missing somehow and I dont know how to put it.
data wa type bin1024.
data length type i.
DATA dsn(50) VALUE '/tmp/test.xml' .
length = P_OUTPUT-XSFLENGTH.
OPEN DATASET dsn FOR OUTPUT IN BINARY MODE.
loop at P_OUTPUT-XSFDATA into wa.
if length > 1024.
transfer wa to dsn.
length = length - 1024.
else.
transfer wa to dsn length length.
endif.
endloop.
close dataset dsn.</i>
I am desperately trying to find out a solution to this. It would be nice of you if I can get a quick solution.
Thanks in advance
Nilay Ghosh