ValvePython / vdf

📜 Package for working with Valve's text and binary KeyValue format
https://pypi.org/project/vdf/
MIT License
167 stars 32 forks source link

UnicodeDecodeError: 'charmap' codec can't decode byte #50

Open sl3d-space opened 1 year ago

sl3d-space commented 1 year ago

appmanifest_1406850.txt

Is there anything that can be done by the library user to have this file parsed correctly?

The problematic field is this one: "installdir" "The Legend of Liāu Thiam Ting"

Thanks

rossengeorgiev commented 1 year ago

Doesn't look like library issue. Whatever way you are loading the file is not using the correct codec when decoding the file.

Try: vdf.load(open('appmanifest_1406850.txt', encoding='utf8'))