Java - Turning Integers into Character with a Charset -
need convert int char representation. did :
char c = (char) integer;
but doesn’t support charset. thought using this:
string s = new string(byte[], charset);
or :
charset.forname("utf-8").newdecoder().decode(bytebuffer);
but both of them needs bytes. how can turn int char charset?
thank in advance.
Comments
Post a Comment