Hi all,
I am using
Java application as Socket server and C# application as Socket client. Server is listening at port 1800.
from the C# client when I m sending a
String with UNicode encoding to java server then I am getting follwing error during convertting BufferedReader to String using readLine() methos : sun.io.MalformedInputException: Missing byte-order mark
SO my doubt is that, Is there any way to add Byte Order at C# client so that we can receive cleanly. In the ASCII case I can receive cleanly.
Follwing is the code snippet at the server ,
ServerSocket ss=new ServerSocket(1800);
Socket s=ss.accept();
System.out.println("Client Accepted");
BufferedReader br=new BufferedReader(new
InputStreamReader(s.getInputStream(),"UNICODE"));
String s1 = br.readLine(); // This line throws exception
Please help me ASAP. Thanks in advance