Skip to content

UnicodeDecodeError: 'gbk' codec can't decode bytes #1

Open

Description

@git20150901

Traceback (most recent call last):
File "autocshell.py", line 156, in
stdoutput = stdoutput.decode('gbk').encode('utf-8')
UnicodeDecodeError: 'gbk' codec can't decode bytes in position 23-24: illegal mu
ltibyte sequence

help.

Activity

  1. webbrain-one commented on Aug 13, 2026

    @webbrain-one

    Hi! I've opened a pull request to fix this issue: #2.

    It addresses the UnicodeDecodeError by handling the GBK decoding more robustly so it doesn't crash on invalid multibyte sequences. Let me know if this resolves the problem for you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions