koodaamo / tnefparse

a TNEF decoding library written in python, without external dependencies
GNU Lesser General Public License v3.0
49 stars 37 forks source link

Solve error "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x95… #121

Closed sangkaka closed 2 years ago

sangkaka commented 2 years ago

Solve error "UnicodeDecodeError: 'utf-8' codec can't decode byte 0x95 in position 0: invalid start byte".

sangkaka commented 2 years ago

name:

b'\x95\xd4\x95i\x8a\xf3~1.XLS\x00'

sangkaka commented 2 years ago

The encoding might be "Shift_JIS". Should find the right enconding.