Options

XML port

Cyber-JediCyber-Jedi Member Posts: 25
Does any one know why i get a sort of bin file when i create a file using XML port?
It has the char $00 (ASCII) inbewteen every char in the file.

I want the file to be "pure" text file!

The code:

File is a declared as "FILE"
Outstream is declared as "OUTSTREAM"

File.TEXTMODE(TRUE);
File.CREATE('c:\temp\kuvert.xml');
File.CREATEOUTSTREAM(OutStream);
XMLPORT.EXPORT(65000, OutStream);
File.CLOSE;

Comments

  • Options
    Cyber-JediCyber-Jedi Member Posts: 25
    Now i know why!!

    The XMLport standard is use UNICODE, changed to UTF-8 and then it worked like a charm.
Sign In or Register to comment.