Facing issue while using xsltproc tp parse XML in bash

I have written a bash script which opens a folder, reads all the *.xml files in it, and pulls the required data that i need from XML tags.

I am using xsltproc (my xsl name) (my xml folder location/*.xml) and running this in a for each loop

The problem is that some XML files are having special data like registered trademark and are failing while parsing.

Is there any way i can instruct my XSL to ignore such errors and parse the XML files?

If there is any other solution available please let me know

Can you provide an example of an xml file that is failing?

If you see below the citi is having trademark registration symbol. Because of suck kind of data parser error is thrown

******.xml:21: parser error : Input is not proper UTF-8, indicate encoding !
Bytes: 0xAE 0x20 0x55 0x70
match="/We've noticed that you are not saving for college with the Citi�

As reported by the output, according to XML spec if you don't explicitly specify an encoding, the file is assumed to be UTF-8 encoded. In fact, there is no guarantee that a XML parser would support non-UTF8 encodings. So this is not strictly XSL related, just an XML issue.

What about replacing the "registered" character by �
? According to XML specification, this must be supported.

Extensible Markup Language (XML) 1.0 (Fifth Edition)