clach04 / puren_tonbo

Plain text notes Tombo (chi) alternative, also supports, ccrypt, GnuPG (OpenPGP, gpg), OpenSSL AES-256-CBC, AES-256 ZIP AE-1/AE-2 and VimCrypt encrypted files. Integrates with VIM. WIP
https://pypi.org/project/puren-tonbo/
GNU Lesser General Public License v2.1
1 stars 0 forks source link

support loading files with a Unicode BOM #95

Open clach04 opened 10 months ago

clach04 commented 10 months ago

If present, use that as encoding on load. Do NOT preserve BOM on save.

Internal API, honor_unicode_bom parameter that defaults to True. honor_unicode_bom ignored if return bytes is True.

With fallback to encodings parameter if no BOM detected.