Posted By:
Anonymous
Posted On:
Thursday, September 8, 2005 10:40 AM
Hi.
What I need to do is to upload a file which could have any encoding type(ASCII, UTF8, ISO8859_1, UTF-16, Unicode etc). I have to parse the file and put each line into a list.
new BufferedReader (new InputStreamReader (in))
uses the
Cp1252
mapping for decoding. The
InputStreamReader
constructor accepts a custom decoding, but I don't known how the file was encoded.
Is there a way to find the encoding type of a file?
Do you have any other proposal for doing that?
10x and have a nice day.