Question about 6961765

Sean Chou zhouyx at linux.vnet.ibm.com
Fri Mar 2 06:15:05 UTC 2012


    But UrlUtil.decode(DN, "UTF8")  and  URLDecoder.decode(DN, "UTF8") are
returning
different strings, if DN has invalid encoding, why URLDecoder.decode(DN,
"UTF8") can
decode it ?

On Thu, Mar 1, 2012 at 4:21 PM, Weijun Wang <weijun.wang at oracle.com> wrote:

> Added some evaluation. Copied here:
>
> The URL in the testcase has an invalid encoding. Its Unicode characters
> must be encoded in UTF-8. For example,
>
>    \u3070 -> \e3\81\b0 -> %5Ce3%5C81%5Cb0
>
> -Weijun
>
>
> On 03/01/2012 03:39 PM, Sean Chou wrote:
>
>> Hi all,
>>
>>    I just encountered this bug:
>> http://bugs.sun.com/**bugdatabase/view_bug.do?bug_**id=6961765<http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6961765>. But it is
>> closed as "NOT A BUG" without any comments.
>>
>>    Would anyone take a look and give it a comment ? Thanks.
>>
>>


-- 
Best Regards,
Sean Chou



More information about the core-libs-dev mailing list