It is true that files uploaded by users may be encoded in various ways. There is no guarantee of a perfect solution, but it can provide maximum file encoding detection based on statistical principles.
I have used this cpdetector which basically solves my needs.
It is true that files uploaded by users may be encoded in various ways. There is no guarantee of a perfect solution, but it can provide maximum file encoding detection based on statistical principles.
I have used this cpdetector which basically solves my needs.
Attached is a code example:
I won’t give you a way to write a file. File has a way to get the URL.
I imported these jars when using them.
If you can’t find it, you can leave your email and I can send it to you.
Using InputStreamReader, encoding can be specified.
Can’t find a perfect solution yet