Skip to content

请问为什么txt的格式是utf-8还会出现这个问题 #98

Open

Description

@PhilrainV

UnicodeDecodeError: 'gbk' codec can't decode byte 0xa8 in position 0: incomplete multibyte sequence

Activity

  1. kathy98443 commented on Apr 7, 2020

    @kathy98443

    你是处理file时出现的吗,整体code是什么

  2. fanrongqitiancai commented on Feb 5, 2022

    @fanrongqitiancai

    我这里也出现这个问题
    代码如下:
    import thulac
    import codecs

    thu1 = thulac.thulac()
    thu1.cut_f("input.txt", "output.txt")
    print('end')

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