Options

Bigtext Encoding problem

kenjeskenjes Member Posts: 76
Hi

I have a BigText var. "SoapRequestXml" - that, when I write to file have the wrong encoding.

Then I have tried this code :
Discfile.CREATE('C:\temp\SoapXml1.xml');
Discfile.CREATEOUTSTREAM(DiscOutStream);
StreamWriter := StreamWriter.StreamWriter(DiscOutStream, Encoding.Unicode);
StreamWriter.Write(SOAPRequestXml);
StreamWriter.Flush();
StreamWriter.Close();

Works perfect.

BUT, I must have the BigText loaded into a XmlDoc ( no file ), with the right encoding.
Is it possible to change the encoding af the bigtext, or how.. :)

Thanks .

/Kenneth

Best Answers

  • Options
    kenjeskenjes Member Posts: 76
    edited 2017-05-30 Answer ✓
    Hi vaprog

    This solved my problem :)

    TEXTENCODING::UTF8

    Thanks

Answers

  • Options
    kenjeskenjes Member Posts: 76
    edited 2017-05-30 Answer ✓
    Hi vaprog

    This solved my problem :)

    TEXTENCODING::UTF8

    Thanks

Sign In or Register to comment.