I am trying to read a comma separated file through InputStream containing some Slovak characters so I am passing proper character encoding in InputStream parameter. But still characters are getting messed up.
InputStreamReader stream = new InputStreamReader(inputStreamToExcel,"ISO-8859-2");
For e.g. dd890èš becomes dd890č Last two Slovak characters got messed up.
Please help.
This is because of your encoding. You are creating your InputStreamReader with "ISO-8859-2" encoding.
Try using "UTF-8".Also check what's the encoding of your file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With