Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emoji is changed to Unicode in yaml #437

Open
zydou opened this issue Oct 18, 2024 · 2 comments
Open

Emoji is changed to Unicode in yaml #437

zydou opened this issue Oct 18, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@zydou
Copy link

zydou commented Oct 18, 2024

Describe the bug
Emoji is changed to Unicode in yaml

To Reproduce

$ cat flag.json
{
  "US": "🇺🇸",
  "CN": "🇨🇳"
}

$ dasel -f flag.json -w yaml
US: "\U0001F1FA\U0001F1F8"
CN: "\U0001F1E8\U0001F1F3"

$ dasel -f flag.json -w toml
CN = '🇨🇳'
US = '🇺🇸'

Expected behavior
Emoji remains unchanged in yaml

Desktop (please complete the following information):

  • OS: Ubuntu 24.04
  • Version: v2.8.1
  • Terminal: Wezterm 20240203-110809-5046fc22
@zydou zydou added the bug Something isn't working label Oct 18, 2024
@TomWright
Copy link
Owner

This is caused by the imported YAML parser: go-yaml/yaml#737

It looks like there's a potential fix in go-yaml/yaml#738, however it's still waiting for review and merge years later.

Repository owner deleted a comment Oct 31, 2024
@TomWright
Copy link
Owner

I've deleted the comment above because of safety concerns. It contained a phishing/malicious link.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants
@TomWright @zydou and others