-
Notifications
You must be signed in to change notification settings - Fork 147
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
Shouldn't "\UA66D" be valid, if not a unicode sequence? #112
Comments
Would this also be illegal??
|
I believe the word "escaped" is being used for two different concepts:
I don't know why the same word is used in both cases though, it's just confusing. I assume that the first variety can only be used to escape the characters explicitly mentioned in the RFC:
All other characters MAY be escaped using the I would say that calling the Hope someone can confirm my interpretation is correct. |
I believe you are referring to:
The form Getting back to your original question, Two more notes, the first from RFC-8259:
The second from Wikipedia:
|
The test
test_parsing/n_string_unicode_CapitalU.json
considers that"\UA66D"
should fail to parse.But I am confused by this because the spec says that any character may be escaped, hence it's not illegal to escape
U
? Sure, this is not supposed to be a unicode sequence because unicode sequences use lowercaseu
... but why shouldn't the parser accept this as the stringUA66D
?The text was updated successfully, but these errors were encountered: