We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On windows with Powershell, I took for the exemple insert-node.left.xml
xmldiff .\insert-node.left.xml .\insert-node.right.xml > insert-gen.diff
This lead on my machine to UTF 16 with BOM which is not read by xmlpatch
xmlpatch.exe .\insert-gen.diff .\insert-node.left.xml gives : ValueError: Unknown diff format
xmlpatch.exe .\insert-gen.diff .\insert-node.left.xml
ValueError: Unknown diff format
This error is raised here:
xmldiff/xmldiff/main.py
Line 207 in c6f2e88
and can be fixed by #80
This might work too: print(result.encode('utf-8'))
print(result.encode('utf-8'))
The text was updated successfully, but these errors were encountered:
Aha, so your console is in UTF-16. I have added a --diff-encoding parameter to xmldiff, which will be included in v2.5.
--diff-encoding
xmldiff
Sorry, something went wrong.
No branches or pull requests
On windows with Powershell,
I took for the exemple insert-node.left.xml
xmldiff .\insert-node.left.xml .\insert-node.right.xml > insert-gen.diff
This lead on my machine to UTF 16 with BOM which is not read by xmlpatch
xmlpatch.exe .\insert-gen.diff .\insert-node.left.xml
gives :
ValueError: Unknown diff format
This error is raised here:
xmldiff/xmldiff/main.py
Line 207 in c6f2e88
and can be fixed by #80
This might work too:
print(result.encode('utf-8'))
The text was updated successfully, but these errors were encountered: