Skip to content

Example code on FAQ is wrong / -FE0F ignored in URL #404

Open
@Joshix-1

Description

@Joshix-1

Python-Code from https://openmoji.org/faq/

emoji_code = "-".join(f"{ord(c):x}" for c in emoji).upper()
url = f"https://raw.githubusercontent.com/hfg-gmuend/openmoji/master/color/72x72/{emoji_code}.png"

generates for https://emojipedia.org/emoji/%E2%80%BC/ (‼️) 203C-FE0F.
That is correct. (see the emojipedia link)

But https://raw.githubusercontent.com/hfg-gmuend/openmoji/master/color/72x72/203C-FE0F.png is not found.
The image instead is on https://raw.githubusercontent.com/hfg-gmuend/openmoji/master/color/72x72/203C.png

The -FE0F is missing from the URL.
https://emojipedia.org/variation-selector-16/ seems to state that it is mandatory for the Emoji representation.

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