You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Gerardo (JIRA)" <ji...@apache.org> on 2016/03/21 16:34:25 UTC

[jira] [Comment Edited] (GROOVY-7796) size() method returns wrong values with accented Strings

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

Gerardo edited comment on GROOVY-7796 at 3/21/16 3:33 PM:
----------------------------------------------------------

Ok, it was a problem of .groovy file encoding on Windows, using ISO 8859-1 works fine


was (Author: gfcalderon):
Ok, it was a problem of .groovy file encoding on Windows, using ISO 8859-1

> size() method returns wrong values with accented Strings
> --------------------------------------------------------
>
>                 Key: GROOVY-7796
>                 URL: https://issues.apache.org/jira/browse/GROOVY-7796
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.4.6
>         Environment: windows 7 64 bits, Groovy 2.4.6, JDK 1.8.0_74 64-Bit Server
>            Reporter: Gerardo
>
> String.size() method returns wrong values when the string contains accented letters:
> println 'Ciclope'.size()
> 7 //ok
> println 'CĂ­clope'.size()
> 8 //wrong



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