Hi
I am reading a file which is stroed in UTF-8 Format and m reading it by code below.
if (is != null) {
InputStreamReader sr = new InputStreamReader(is, "UTF-8");
BufferedReader br = new BufferedReader(sr);
String str = "";
while ((str = br.readLine()) != null) {
writer.append(str + "\r\n");
}}
---- The output is
?
$C_FamilyName $C_FirstName?
$C_ProspectNo
When i am reading this file and printing it to console the first line gets printed as ? but the first line of the file is empty.
Please provide solution on how to resolve this issue.