**Expected behavior**
I would expect the output of the above to differ. I would expect `ascii` to not be output as a byte string. I would expect `nonexistent encoding` to error or warn and ignore.
**Desktop (please complete the following information):**
- OS: Fedora 40
- Textract version: 1.6.5
- Python version: 3.12.4
- Virtual environment: no
**Additional context**
Haven't tested commandline.
Describe the bug The
encoding
argument seems to be ignored.To Reproduce
Save this image as
file.png
:Run:
print(textract.process("file.png"), "\n") print(textract.process("file.png", encoding="ascii"), "\n") print(textract.process("file.png", encoding="nonexistent encoding"), "\n")