Xml encoding in xml_tools.py
Hi,
I was recently testing MAJA in a Docker image (in Windows, via WSL2) prepared as per the tutorial here (using the installer): https://github.com/CNES/MAJA/issues/80
My miniconda Python environment consists of the following libraries: https://pastebin.com/LkY2XLDX
Most steps went smoothly, but during the xml_tools.py "can be opened?" validation, the lxml library could not open the XML files in the .SAFE folders so MAJA couldn't detect any assets, so I kept getting the "No input L1 product available" exception.
I fixed this by adding encoding='utf-8' to all instances of the open function in xml_tools.py; however, I am not sure if this would introduce bugs on non-WSL+Docker environments (maybe Windows is introducing some unwanted line endings?)
Should I make a merge request nonetheless?
Kind regards.