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

Popular posts from this blog

Combining PHP Registration and Login into one class with multiple functions in one PHP file -

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -