Code review request 6957230: CharsetEncoder.maxBytesPerChar() reports 4 for UTF-8; should be 3

Alan Bateman Alan.Bateman at oracle.com
Fri Nov 19 09:16:30 UTC 2010


Xueming Shen wrote:
> Alan,
>
> Last time when Martin and I discussed this issue we agreed that the 
> submitter is right
> about this. (The "charset" is a mapping between "a sequence of bytes" 
> and a "sequence
> of  sisteen-bit Unicode characters, so the character discussed here 
> should be a utf-16
> character...)
>
> http://cr.openjdk.java.net/~sherman/6957230/webrev
>
> Thanks,
> -Sherman
I'll go along with this too, so thumbs up from me.

-Alan.



More information about the core-libs-dev mailing list