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

Unicode input is about JSON encoders, not about YAML. #13

Open
ElectronicRU opened this issue Jul 2, 2019 · 4 comments
Open

Unicode input is about JSON encoders, not about YAML. #13

ElectronicRU opened this issue Jul 2, 2019 · 4 comments

Comments

@ElectronicRU
Copy link

The last row of the table is misleading -- JSON spec has escape sequences, so the string is the same in all cells, but is expressed differently in JSON.

@champignoom
Copy link

Indeed. Adding ensure_ascii=False to json.dumps() should eliminates the difference.

@ssokolow
Copy link

ssokolow commented Dec 10, 2020

The primary objective of this revision is to bring YAML into compliance with JSON as an official subset.
-- https://yaml.org/spec/1.2/spec.html

(As of YAML 1.2, it's officially intended that all valid JSON can be parsed as valid YAML.)

@champignoom
Copy link

@ssokolow How's that relevant here?

@ssokolow
Copy link

...it's not. I underestimated how sleep-deprived I am and misread the issue.

Sorry about that.

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

No branches or pull requests

3 participants