Skip to content

the number of bytes returned by len(string), expect return number of chars  #746

Closed
@ShawnHsiung

Description

@ShawnHsiung

in golang, len(string) returns the number of bytes,Is it possible renturn the number of chars in EXPR?

len("北京") == 6
utf8.RuneCountInString("北京")  == 2 // expect

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions