# LookupError: unknown encoding: nosuch; 'a'.decode() -> AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'? (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/lookuperror-unknown-encoding-nosuch-a-decode-attributeerror-str-object-has-no-attribute-decode-did-c138195c6686
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: python, lookuperror, bytes

'a'.encode('nosuch') and 'a'.decode('utf-8') in scripts. b'a'+'b' -> TypeError: can't concat str to bytes.
