Closed rossengeorgiev closed 8 years ago
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.
After some thought it would be best not to try and automatically handle bytes.
Ideally the behavior should change to:
utf-8
by default