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.
In any case, data coming from C# is likely to be little-endian, so you could try using "UTF-16LE" on the Java side instead; or you could try using UTF-8 on both ends, which doesn't have a byte order and doesn't require a Byte Order Mark.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: "MISSING BYTE ORDER MARK" exception during receiving messege through socket