[ 
https://issues.apache.org/jira/browse/WICKET-6227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15422652#comment-15422652
 ] 

ASF subversion and git services commented on WICKET-6227:
---------------------------------------------------------

Commit d8c5ad3871a7fb3ece7d087bb67738e393da3b7b in wicket's branch 
refs/heads/wicket-7.x from [~mgrigorov]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=d8c5ad3 ]

WICKET-6227 CharSequenceResource calculates wrong length when there are unicode 
symbols


> CharSequenceResource calculates wrong length when there are unicode symbols
> ---------------------------------------------------------------------------
>
>                 Key: WICKET-6227
>                 URL: https://issues.apache.org/jira/browse/WICKET-6227
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 7.4.0
>            Reporter: Martin Grigorov
>
> At the moment CharSequenceResource#getLength() looks like:
> {code}
> @Override
>       protected Long getLength(CharSequence data)
>       {
>               return (long) data.length();
>       }
> {code}
> This returns wrong results when there are unicode symbols like "\u1234".
> It should use org.apache.wicket.util.string.Strings#lengthInBytes() instead.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to