You can start by telling us what version of InDesign you’re using and how you’re viewing the EPUB.
What level of expertise do you have with HTML and CSS?
Sorry about that!
I'm using CS4.
The problem occurs when I view the epub file on both Adobe Digital Editions and on my Kindle.
I have spent the day copy & pasting the "good" em-dash from chapter one indesign book file to the chapter two em-dash, but the glitch still appears.
I totally appreciate any insights!
Also, I don't have much expertisse with HTML and CSS. But I can learn pretty quickly!
I usually design books in InDesign and then export as Digital Edition to produce the epub file. I guess I am unaware of being able to manipulate within that procedure.
FWIW, the "gibberish" you are seeing is perfectly normal UTF-8 encoding. This is necessary for rounded quotes -- they aren't really "smart" anymore -- and en-dashes because they fall outside the regular ASCII range.
This might help you to track down the problem; somewhere it must be told this file contains more than your average keyboard characters.
It sounds like somethings wrong with the chapter's character encoding. The character encoding is declared in the header of the ePub HTML. From ID it's:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
This test has UTF-8 declared in the first line of its source code:
And this has no encoding
Most browsers let you override or choose the character set, so in Safari if you set the character set to View>Text Encoding>default, you'll see a difference between the above links, but if you set it to Unicode (UTF-8) they both display correctly. In FireFox it's View>Character Encoding.
You can check and edit the contents of the .epub file by changing the extension from .epub to .zip, and then extracting the contents.