A
Arun
I am using
InputStream input = new ByteArrayInputStream( fileContents.getBytes()
);
to get an input using the string, filecontents.
However the input doesnt read properly, and when i try to parse it,i
get the error invalid byte 1 of 1-byte UTF-8 sequence.
I do know that the file contains that square symbol in it.
I am pretty confident that this byte is what's making the parsing mess
up.
Anyone know how to get around this? Like a method of removing all those
'square bytes'?
InputStream input = new ByteArrayInputStream( fileContents.getBytes()
);
to get an input using the string, filecontents.
However the input doesnt read properly, and when i try to parse it,i
get the error invalid byte 1 of 1-byte UTF-8 sequence.
I do know that the file contains that square symbol in it.
I am pretty confident that this byte is what's making the parsing mess
up.
Anyone know how to get around this? Like a method of removing all those
'square bytes'?