Psych.dump convert emoji characters into unicode
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
- https://r12a.github.io/app-conversion/
β¨ Please let emojis live in yaml files. π π π π
Note This issue was moved from https://github.com/glebm/i18n-tasks/issues/291
Hi, has there been any progress made on this?
Upvote for having emojis in yaml files. It's 2020, emojis are basically everywhere. Would be nice to have this supported.
It's 2021, emojis rule the world. My workaround is:
data.to_yaml.gsub(/\\u[\da-f]{8}/i) { |m| [m[-8..].to_i(16)].pack("U") }