[rfc][icedtea-web] Console Output Encoding Fix

Omair Majid omajid at redhat.com
Wed Jul 16 15:18:48 UTC 2014


* Jie Kang <jkang at redhat.com> [2014-07-16 10:28]:
> +            s = byteStorage.toString("UTF-8");

How do you know that the byte array being written is in UTF-8? Is this a
safe assumption?

> +        } catch (UnsupportedEncodingException e) {
> +            s = byteStorage.toString();

If utf8 is missing from the JDK, I would like to think we are screwed.

Cheers,
Omair

-- 
PGP Key: 66484681 (http://pgp.mit.edu/)
Fingerprint = F072 555B 0A17 3957 4E95  0056 F286 F14F 6648 4681


More information about the distro-pkg-dev mailing list