Later after doing some operations i'm converting the bytes to string as follows
StringBuilder buf = new StringBuilder();
for (int i = 0; i < inFile.length; i++) {
byte b = inFile;
buf.append((char) b);
}
String s = buf.toString().trim();
The final converted string doesn't have the above latin character à
Is there is any way to get the string content along with the character à?
Thanks,
Kathir
James Boswell
Ranch Hand
Joined: Nov 09, 2011
Posts: 344
posted
0
How about
Although personally, I don't think using the style of chaining method calls on same line.
subject: Set an encoding scheme for InputStreamReader and ByteArrayOutputScream !!!