Skip to content

Emoji is changed to Unicode in yaml #437

@zydou

Description

@zydou

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions