Hi Doitsu,
You can safely ignore those warnings. KindleUnpack was designed to work solely with utf-8 encoded bytestrings and to convert the required paths on Windows only to full unicode only exactly as needed. The python launcher that Sigil uses was designed in much the same way (always use utf-8 encoded bytestrings) to prevent issues with python when full unicode and bytestring data are concatenated causing improper implicit conversions.
The KindleImport plugin was borrowed from the Calibre KindleUnpack which defaults to using a full unicode environment even on Python 2.7. So it works with full unicode and not utf-8 strings.
That warning message is basically either something in the Sigil plugin launcher code or kindleunpack code saying that pathof() always wants to be passed in a utf-8 string which for windows will be properly converted to full unicode (and remain as a bytestring for Mac OS X and Linux), but for some reason it was given a full unicode string instead.
It should not hurt anything. I will try to track down where the full unicode python 2.7 strings are coming from and convert them all to utf-8. Alternatively, I could always redesign the Sigil plugin code to always use full unicode.
Thanks for the heads up.
Kevin
Last edited by KevinH; 09-09-2014 at 01:29 PM.
|