Menu

#452 Handle forbidden control characters during encoding

v2.8.x
pending
None
(not fixed)
5
2025-08-04
2025-08-04
No

I use dbunit for regression testing and got the following problem:

Exporting a string from a database with "Information seperator"  cannot be imported again. XML 1.0 does not allow this character, even encoded.

DbUnit most likely should remove this character or maybe subitute it with U+FFFD (Replacement Character)

Discussion

  • Jeff Jensen

    Jeff Jensen - 2025-08-04
    • status: open --> pending
    • assigned_to: Jeff Jensen
     
  • Jeff Jensen

    Jeff Jensen - 2025-08-04

    Hi Simon, thanks for reporting the issue.

    Are you able to provide any files to help us apply a change faster? Attaching a dbUnit xml file containing the problem and a dbUnit xml file containing your desired change would help understand the desired result. If you have time for additional help, a dbUnit test that fails w/the problem and passes with the change is great help! And of course lastly, if you make the code change with the test, that's the best help.

    If you can provide any/all of those files, either attaching files to this issue or creating an MR so you have commit author credit will work well. Just lmk if I can help too.

     

Log in to post a comment.