View Single Post
Old 01-12-2017, 11:33 AM   #15
bravosx
Zealot
bravosx began at the beginning.
 
Posts: 106
Karma: 10
Join Date: Jun 2014
Location: Poland, Żory
Device: Prestigio PER3464B, Onyx Lynx, Lenovo S5000 i Tab4-8"
Unhappy

Quote:
Originally Posted by KevinH View Post
Then the issue must be in the plugin someplace. Sigil autodetects the encoding and converts it to utf-8. The plugin should read the input file as binary (bytes), attempt to autodetect the encoding using charmap or byte search for an encoding string, and then decode the binary (bytes) into a python str type (unicode). Once as a python3 string replace any metadata encoding infonfrom the old encoding to utf-8 before using encode to create a utf-8 set of bytes for working with lxml and etc.

How does this plugin handle that process?

KevinH
Unfortunately, this is I do not know. I am a retired mechanical engineer, not a computer programmer.

Regards bravosx
bravosx is offline   Reply With Quote