I have a file that looks live a .XML (it even has a <?xml version="1.0" encoding="utf-8"?>
header). But before the header, when I open the file in Notepad++, there is random letters and some NULL chars.
Going down the file, after the .XML standard writing, there a lot of random chars (that I assume, based of the origin of my file, it is the data from sensors)
I'm trying to open it in python, to work the data, but I can't find a way to do it. Normally, for a .XML file, I would open it with Element Tree. I've tried to read the binary data with open, but the Buffer returns a stream of data that only show the character as displayed in Notepad++.
I don't know if there is a solution for my problem, or if I need a dictionary to translate these random chars.
I would appreciate any help anyone could give me!
I've tried using Element Tree, python's open method and struct unpack.