Skip to content

TypeError: decoding with 'utf-8' codec failed (TypeError: a bytes-like object is required, not 'str') #20

@TeddLouis

Description

@TeddLouis

Hi guys,

I'm running a little problem. I'm trying to build an experiment test but I stumble a lil problem.

practiceEndLookup = { "English" : practiceEndEng, "French" : codecs.decode(practiceEndFr,'utf-8')}
TypeError: decoding with 'utf-8' codec failed (TypeError: a bytes-like object is required, not 'str')

can someone assist me, how to fix this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions