0

i am trying to compare 2 xml file for work and both are exactly the same except for this first line :

File 1: <?xml version='1.0' encoding='UTF-8'?>
File 2: ?<?xml version="1.0" encoding="UTF-8"?>

We can see the difference better on the picture [1]: https://i.stack.imgur.com/xT4Ur.png

I can't figure out what's wrong and why it does it this. I couldn't find either on the internet somebody with the same error.

clemdcz
  • 99
  • 7
  • What language are you using? Where's the code you used to compare them? Are you comparing them by eye and hand, written on paper? Please add a [mre] – thedemons Oct 28 '22 at 07:37

1 Answers1

0

I found the answer finally. One was Utf8 and the other Utf8-BOM.

Refer to this post for more understanding : What's the difference between UTF-8 and UTF-8 with BOM?

clemdcz
  • 99
  • 7