Psych.dump convert emoji characters into unicode
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 597
- Forks
- 223
- Avg merge
- 11h 23m
- Merged PRs (30d)
- 3
Description
Hey! 🙌
The origin of this issue is i18n-tasks which delegates YAML dumping to this library.
I've spotted that
i18n-tasks normalizeconverts emoji characters into unicode which makes them much harder to read and change afterward. IMHO, this should be necessary becauseyamlis capable to understand plain emoji chars. What do you think about this one?
Before
lang:
de-de: 🇩🇪 German
en-uk: 🇺🇸 English
header: 🌐 Select Language
After i18n-tasks normalize / Psych.dump
lang:
de-de: "\U0001F1E9\U0001F1EA German"
en-uk: "\U0001F1FA\U0001F1F8 English"
header: "\U0001F310 Select Language"
Converter tool
✨ Please let emojis live in yaml files. 💙 💚 💛 💜
Note This issue was moved from https://github.com/glebm/i18n-tasks/issues/291
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Psych.dump entry point and reproduce the YAML output shown in the issue with emoji characters. Trace how those characters are serialized, then verify that completed output preserves readable emoji in YAML rather than converting them to Unicode escapes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby, yaml
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100