This content has been marked as final. Show 2 replies
You can't, at least not completely. Just specify the encoding everywhere your app uses one. Relying on platform default settings is guaranteed to get you in trouble eventually.
Rightly said. Even the internal classes of JDK uses system encoding to convert bytes to character. The data will always be corrupted in case if it is multibyte characters. The best way out is to convert the data specifying ur encoding