Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.

Conversation

@dtolnay
Copy link
Owner

@dtolnay dtolnay commented Mar 5, 2023

Previously the Rust string "\u{1F389}" would get emitted as the YAML double quoted scalar "\U0001F389". Now it will be serialized as 🎉.

Previously the Rust string "\u{1F389}" would get emitted as the YAML
double quoted scalar "\U0001F389". Now it will be serialized as "🎉".
@dtolnay
Copy link
Owner Author

dtolnay commented Mar 5, 2023

PyYAML handles codepoints in this range this way too. yaml/pyyaml#63

@dtolnay dtolnay merged commit 1cb5fa0 into master Mar 5, 2023
@dtolnay dtolnay deleted the unicode branch March 5, 2023 01:04
@dtolnay dtolnay changed the title Adding support for emitting Unicode characters over codepoint U+FFFF Add support for emitting Unicode characters over codepoint U+FFFF Mar 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants