character encoding - java- how to obtain/store string variables which have different charsets -
i have data in variable of type list. different elements in list encoded in different charsets. know charset corresponding each element.
i want know: how extract each string in respective charset?
also, if have text being entered java application user (along charset), how can store each value in list variable? , how can store/retrieve such value in string variable?
and after data stored/retrieved, changes of charset mean default charset (utf-8) no longer being used? if case, how can restore default charset?
a string stored (internal) unicode. need handle charsets if convert bytearrays strings or strings bytearrays.
see: http://docs.oracle.com/javase/tutorial/i18n/text/string.html example.
Comments
Post a Comment