Hi Roger,
The Git attributes look fine.
Do you have an encoding attribute like the following in your XML files?
<?xml version='1.0' encoding="UTF-8"?>
Ant should work well with IBM-1047 tagged files, but there's a known issue related to the encoding="UTF-8" attribute in such files:
Ant Known Issues
I recommend removing the encoding attribute, if it exists and if that's an option in your case.
If that doesn't help, could you please share an example of the XML or DTD file where the error occurs?
Thanks,
Sergey