Closed Tokenyet closed 2 years ago
I prefer that the xml
package addresses this problem.
Instead of replacing those control characters with a space, I used an XML unicode escape to still keep the data as is. See 09820c52c9c39c825567864b73d44402bc742b1b
This PR fix the following potential problem in XML.
There is a special unicode in system-out
<system-out></system-out>
, and will be identified as one empty space in some editors, but actually It's 0x01, SOH(start of headline), I have no idea why It produce the strange unicode, but this post help this PR to fix the issue.In conclusion, If we don't handle this, XML will be identified as CORRUPTED, I found this in my gitlab ci, so I make this PR! By the way, I personally kept the
\n
in the code, since I think users as me would love to see It directly😄 , and this won't make XML corrupted.