-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
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
System output with Terminal control codes such as U+001B causes error when parting XML #36
Comments
What version are you using? A recent version should have fixed some illegal Unicode in XML problems. |
The version is 2.0.2 which I believe is the latest. |
I believe that the problem arises because control characters are invalid in XML 1.0 but allowed in XML 1.1, see this opened PR #39 |
I just ran into this as well as the azure devops report task is not willing to eat invalid xml, would be great if the PR of @dinwath could be merged |
for reference: I quickly tested if moving the xml version to 1.1 would fix the issue I had in azure devops. Unfortunately it is not, seems that they do only support xml version 1.0. Not sure if that is something specifically on their end or something in the junit format. |
@lazytesting Experiencing same issue with Azure devops, were you able solve it? I've tried to "clean up" outputted XML file with some regex magic like
Basically, remove any escape characters, but they are apparently not all. So looking for some better solution. |
For us it was only 1 character which gave the problem and this task solved it:
|
Our application uses Logger package which color codes log output. This introduces Unicode character code in the XML output which are not encoded into and XML entity.
See attached log file
The text was updated successfully, but these errors were encountered: