Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Devices

Notices

Reply
 
Thread Tools Search this Thread
Old 02-10-2023, 11:49 PM   #1
slothrop
Enthusiast
slothrop began at the beginning.
 
Posts: 25
Karma: 10
Join Date: Dec 2006
Question Why the "“", "â€", and "’"?

Why do "“", "â€", and "’" appear in many of the Kindle books I send from Calibre?

In many books, all the open double quotes get replaced by “, close double quotes get replaced by â€, and the apostrophes by ’.

In the E-book reader built into Calibre, everything looks normal. But after I send it to the Kindle, this replacement happens.

Is this a Calibre issue? Or a Kindle issue? And more importantly, how can I fix this?

Last edited by slothrop; 02-10-2023 at 11:55 PM.
slothrop is offline   Reply With Quote
Old 02-11-2023, 02:01 AM   #2
isarl
Addict
isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.
 
Posts: 287
Karma: 2534928
Join Date: Nov 2022
Location: Canada
Device: Kobo Aura 2
It looks like your files have been marked as having the wrong encoding. Either reencoding the files, or changing the declared charset, should have characters displaying properly again.

In particular, this error looks like what happens when software attempts to decode Unicode-encoded text under the assumption that it is CP1252 (or Latin1/ISO-8859-1, which modern browsers often treat as CP1252 regardless).

If your files have character sets declared which are not utf-8, try changing that and seeing if it helps.
isarl is offline   Reply With Quote
Advert
Old 02-11-2023, 02:23 AM   #3
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by slothrop View Post
And more importantly, how can I fix this?
Install the Modify Epub plugin select the book(s) and then select Modify ePub > Encode HTML in UTF8.
Doitsu is offline   Reply With Quote
Old 02-11-2023, 08:30 AM   #4
isarl
Addict
isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.isarl ought to be getting tired of karma fortunes by now.
 
Posts: 287
Karma: 2534928
Join Date: Nov 2022
Location: Canada
Device: Kobo Aura 2
Quote:
Originally Posted by Doitsu View Post
Install the Modify Epub plugin select the book(s) and then select Modify ePub > Encode HTML in UTF8.
I may be wrong but these particular errors look to me like the file is already encoded as UTF-8. The problem is not how it is encoded, it is how it is being decoded.
isarl is offline   Reply With Quote
Old 02-11-2023, 08:50 AM   #5
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,056
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by isarl View Post
I may be wrong but these particular errors look to me like the file is already encoded as UTF-8. The problem is not how it is encoded, it is how it is being decoded.
Which Amazon does if the UTF8 statement is missing in an epub.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

If the charset is not defined Amazon assume it's CP1252. Some sort of throw-back to early days of Mobi on Kindle. Amazon bought Mobipocket, the biggest seller of ebooks on Windows CE, Symbian and Palm OS the year Sony brought out eink (2005) and first Kindle was 2007.

Historical stupidity.

Use Modify Epub tool or edit existing <meta http-equiv="Content-Type" content="text/html> (or whatever) to <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> at the top of every HTML file.
Quoth is offline   Reply With Quote
Advert
Old 02-11-2023, 09:23 AM   #6
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,727
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by isarl View Post
I may be wrong but these particular errors look to me like the file is already encoded as UTF-8. The problem is not how it is encoded, it is how it is being decoded.
The html files are most likely either missing encoding declarations and/or contain Mojibake.
If they're missing encoding declarations they aren't properly encoded and might be incorrectly decoded.
AFAIK, the Modify ePub plugin will add missing encoding declarations, but can't handle Mojibake.
Doitsu is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pressing "Restore Defaults" under "Book Details" wipes all "Look & Feel" settings. MarjaE Library Management 1 03-30-2021 11:46 AM
Feature Request: configurable space setting for "Insert blank line" in "Look & Feel" therealjoeblow Calibre 15 07-25-2011 03:14 PM


All times are GMT -4. The time now is 07:58 PM.


MobileRead.com is a privately owned, operated and funded community.