vdf.load will fail in python3 on file-like object that return bytes
Closed this issue · 2 comments
rossengeorgiev commented
Ideally the behavior should change to:
- the module should try to decode as
utf-8
by default - there should be a keyword argument for specifying encoding
rossengeorgiev commented
Probably best to solve this by wrapping string/file inputs into a BufferedReader
.
That way we can seek forward/back to locate BOM, regardless of the input supporting it.
rossengeorgiev commented
After some thought it would be best not to try and automatically handle bytes.