Skip to content

Latin Cross #470

@amitfriedman12

Description

@amitfriedman12

Why is it that the latin cross emoji contains a nasty utf8 character as a second char?

Normal emoji:

$ heart = "💟"
=> "💟"
$ heart.length
=> 1
$ encoded_heart = Rumoji.encode heart
=> ":heart_decoration:"

Latin Cross Emoji

$ string = "✝️"
=> "✝️"
$ string.length
=> 2

$ string[0]
=> "✝"
$ string[1]
=> "️"
$ string[1] == "\xEF\xB8\x8F"
=> true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions