Hi,
I am splitting a
string [which could be composed of multibyte characters] in to chunks of 4000 bytes [so that i could store it in to varchar2 column in the database]. so i do "new String(bytes, currentPos, 4000);".
The issue: A multibyte character could be broken due to splitting based on bytes.
Question: how can i find out that the last byte in the 4000 bytes string is a part of a multibyte sequence, so that i don't split it up and should construct a smaller string [say 3997 bytes, avoiding splitting the last 3 byte multibyte char]
Thanks,
Anupam