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

non-printable characters are not supported inside quoted scalars #192

Closed
rlidwka opened this issue May 13, 2015 · 0 comments
Closed

non-printable characters are not supported inside quoted scalars #192

rlidwka opened this issue May 13, 2015 · 0 comments
Labels

Comments

@rlidwka
Copy link
Member

rlidwka commented May 13, 2015

YAML standard section 5.1 explicitly allows non-printables in quoted scalars for JSON compatibility, js-yaml doesn't:

> require('js-yaml').load('"\ud800"')
JS-YAML: the stream contains non-printable characters at line 1, column 1:
    "���"
    ^
> JSON.parse('"\ud800"')
'���'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants