Hi,
I could need some help here (if possible)...
Let's say I have a .txt file on Windows with this content
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<RootNode Version="1">
<Groups>
<Device>
<Effects>
<On>
<Annotation Value="The first event, do not find me!" />
</On>
<Annotation Value="Another event, still not the one we are searching for" />
</Effects>
</Device>
</Groups>
</RootNode>
I'm using CRLF for line endings and the file is saved as UTF-8 BOM
When I now include this file via Data Maker v1.02 (Compression: None, Quads per Line: 5)
I get this DataSection (and I added the code to display it):
Code: Select all
Debug PeekS(?Test_XML_UTF8_BOM_xml_start, -1, #PB_UTF8)
DataSection
Test_XML_UTF8_BOM_xml_start:
; size : 322 bytes
Data.q $6C6D783F3CBFBBEF,$6E6F697372657620,$652022302E31223D,$3D676E69646F636E,$3F22382D46545522
Data.q $746F6F523C0A0D3E,$7265562065646F4E,$2231223D6E6F6973,$6F72473C090A0D3E,$09090A0D3E737075
Data.q $3E6563697665443C,$66453C0909090A0D,$0A0D3E7374636566,$3E6E4F3C09090909,$3C09090909090A0D
Data.q $697461746F6E6E41,$65756C6156206E6F,$696620656854223D,$6E65766520747372,$6F6E206F64202C74
Data.q $6D20646E69662074,$0A0D3E2F20222165,$6E4F2F3C09090909,$3C090909090A0D3E,$697461746F6E6E41
Data.q $65756C6156206E6F,$6568746F6E41223D,$2C746E6576652072,$6E206C6C69747320,$6F2065687420746F
Data.q $726120657720656E,$6863726165732065,$22726F6620676E69,$0909090A0D3E2F20,$7463656666452F3C
Data.q $2F3C09090A0D3E73,$0D3E656369766544,$756F72472F3C090A,$522F3C0A0D3E7370,$3E65646F4E746F6F
Data.b $0D,$0A
Test_XML_UTF8_BOM_xml_end:
EndDataSection
My problem is, what the debug output shows now:
https://imgur.com/Icj4kw4
Where does this
come from (and how to get rid of it)?
And a section question:
If I'd want to use a compression algo like LZMA, how
exactly would I decompress the data in the DataSection
and store it in a string afterwards?