[
https://issues.apache.org/jira/browse/WICKET-6227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15422651#comment-15422651
]
ASF subversion and git services commented on WICKET-6227:
---------------------------------------------------------
Commit e3f1b4e394d1fa4948e387573cd94833bd673200 in wicket's branch
refs/heads/wicket-6.x from [~mgrigorov]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=e3f1b4e ]
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)