julia> s[20:20]
""

Definitely something weird going on. Seems like any (positive or negative) 
0-length range is acceptable in UTF8String indexing (not so with 
ASCIIStrings).


On Saturday, 18 January 2014 15:32:58 UTC-6, John Myles White wrote:
>
> I suspect I’m missing something, but this seems odd to me: 
>
> julia> s = string('ñ') 
> "ñ" 
>
> julia> s[2] 
> ERROR: invalid UTF-8 character index 
>
> julia> s[2:2] 
> “" 
>
>  — John 
>
>
>

Reply via email to