Any known web (JS) workarounds for parsing CSVs with inconsistent file encodings? Right now I am at the conclusion that you must know the encoding type before parsing, though I've come across some decent libraries that can "guess" the encoding type:
https://www.joelonsoftware.com/2003/10/08/the-absolute-minim...
Guessing will lead to tears.
The command-line version of ftfy [1] can handle a distinct encoding for each line with a near-zero rate of false positives. (No guarantees the output will be correct, especially if you read it as the wrong single-byte encoding initially, but it will be no worse than what you put in, because it won't replace correct text with incorrect text.)
There is no JS version of ftfy, and there won't be until JS can represent all Unicode characters without surrogates.