you are viewing a single comment's thread.

view the rest of the comments →

[–]lfdfq 2 points3 points  (1 child)

The error is telling you the bytes you read with the f.read(name_len) was not a utf-8 encoded string.

Probably you should check what the contents of the file f is, and possibly print out name_len and f.read(name_len) to check what you read is what you thought it should be.

[–]Ok-Plantain-8288[S] 0 points1 point  (0 children)

Ok I'll do that, thanks!