View Single Post
Old 11-12-2020, 01:12 AM   #3
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by michaelbr View Post
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.

Last edited by Tex2002ans; 11-12-2020 at 01:17 AM.
Tex2002ans is offline   Reply With Quote