Contents | Start | End | Previous: KB0056: Why don't tabs work in Jutoh? | Next: KB0058: How do I update EpubCheck?


KB0057: How to find rogue characters for EpubCheck 'invalid XML character' errors

You may find EpubCheck complaining about invalid XML characters, such as:

ERROR (EpubCheck): OPS/section-0002.html(42,71): An invalid XML character (Unicode: 0x18) was found in the element content of the document.

The characters are reported in hexadecimal. We can search for these characters by inserting them into the Find dialog.

  1. In Jutoh 1, switch on the Advanced Find Dialog via Preferences/Advanced/Use advanced find dialog (not necessary in Jutoh 2).

  2. Observe the character that the error mentions, for example character 0x18.

  3. Show the Find dialog, click More >> and then on the first Add button. Click Symbol.

  4. In the symbol picker dialog, choose the symbol with this value; for example, hex 0x18 (decimal 24).

  5. Press Find. You'll then find occurrences of the symbol.

Another method is to double-click on the error message, find the context of error, search for nearby text in Jutoh, and delete the rogue characters.


Contents | Start | End | Previous: KB0056: Why don't tabs work in Jutoh? | Next: KB0058: How do I update EpubCheck?