Say i have a byte[] containing Base64 text.
I want to take this text end create a String out of it:
str = new String(text,"charset");
when i create the new String how can i be sure that i am not ruing indormation from the original text.
i mean how can i be sure i am passing the right charset when doing new String(text, "charset").
In case the original encoding is "cp-1255" and i am doing str = new String(text,"UTF-8") might i be ruining the text?