Skip to content

Wrong total read bytes in chunk #2

@andrewGIS

Description

@andrewGIS

You need to change count of reading bytes in chunk because some time len(str) != len(str in bytes)

So you need to change line
total_len += len(line)
to
total_len += len(line.encode())

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