Hello,
How can we convert bytes into string (Python 3).
My string is in signature.
I am using
signature = signature.decode(encoding="utf-8")
But it gives me error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xde in position 1: invalid continuation byte
Any idea please.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
2532
Views
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up
what is your input, please specify? if you are reading a file, then you can specify the encoding directly.
Hi @Hilar Andikkadavath:
Thank you for ur kind reply, my input is a hash, which is in bytes formate.