Quote:
Originally Posted by michaelbr
I have an epub2 file, [...] displays weird char for single quote. Sigil tells me that the encoding and charset are both UTF-8. How can i go to fix this problem?
|
I'm betting it's a character that looks like an apostrophe, but isn't.
Many times, people accidentally use ` GRAVE ACCENT (the little key to the left of '1') instead of ‘ LEFT SINGLE QUOTE.
Code:
This is an `example´ of grave and acute accent. (Wrong)
This is an ‘example’ of left and right single quote. (Correct)
It should just be as easy as copying the character that's funny and Search/Replacing it with the proper character:
Grave -> Left Single Quote
Search: `
Replace: ‘
Acute -> Right Single Quote
Search: ´
Replace: ’
To Spot Other Strange Characters
In Sigil, Press
Tools > Reports > Characters in HTML Files.
Scroll through the list, and look for anything that looks like a "weird" apostrophe.
Then you could double-click on a character in the list, and Sigil should jump you to its location in the code.
These 3 are correct:
- ' APOSTROPHE (U+0027)
- This is the key on your keyboard.
- ‘ LEFT SINGLE QUOTE (U+2018)
- ’ RIGHT SINGLE QUOTE (U+2019)
If dealing with double quotes, these 3 are correct too:
- " QUOTATION MARK (U+0022)
- This is the key on your keyboard.
- “ LEFT DOUBLE QUOTE (U+201C)
- ” RIGHT DOUBLE QUOTE (U+201D)
Any other quote-looking characters should probably be inspected.