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

Encodes unicode characters with double backslash #408

Open
srid opened this issue Aug 18, 2022 · 0 comments · May be fixed by #423
Open

Encodes unicode characters with double backslash #408

srid opened this issue Aug 18, 2022 · 0 comments · May be fixed by #423

Comments

@srid
Copy link

srid commented Aug 18, 2022

I wonder if this is a regression from #354

In GHCi (run bin/repl from srid/emanote#327 to reproduce using Nix),

ghci> import qualified Toml
ghci> putTextLn $ Toml.encode (Toml.text "k") "✍️"
k = "\\U0000270d\\U0000fe0f"

Notice that tomland produces \\U0000270d instead of the expected \U0000270d. This breaks the functionality of https://stork-search.net/ (see srid/emanote#336).

kukimik added a commit to kukimik/tomland that referenced this issue May 24, 2023
@kukimik kukimik linked a pull request May 24, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant