|
Conversion Fail Due to Emojis?
I've seen this a few times before, but it's happened to me twice this morning:
Conversion from EPUB to AZW3 fails due to a single emoji character in the EPUB. It doesn't effect viewing, editing, exploding, polishing, etc--only converting as far as I can tell.
In both cases, I get the same final error:
ValueError: unichr() arg not in range(0x10000) (narrow Python build)
I've narrowed it down specifically to these snippets:
<img alt="🙀" ...>
<img alt="😅" ...>
Removing the emoji character in the alt attr allows conversion to work. And the error is the same even though the emojis are different. I'm running 64bit Calibre in debug mode on Windows 10.
(Possibly related, I've also been occasionally seeing Calibre silently stop and close without any error message. I've seen it happen when calling auto-convert from FanFicFare plugin and once today when hitting the 'e' key to edit metadata. Only since v4 came out.)
Attached are 2 epubs showing the problem and the conversion logs I get when they fail.
Any help would be appreciated, thanks.
|