-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
JSON must use UTF-8 encoding without BOM #1345
Comments
From RFC-7159 (JSON), section 8.1
Also it allows loaders to not support full UTF-8 charset because all glTF-defined strings are ASCII-representable. The validator will refuse to load an asset starting with BOM in some cases, I'll investigate to make that consistent across all builds/inputs. |
http://github.khronos.org/glTF-Validator/ doesn't fail. Here is an asset with a UTF-8 BOM: |
@bghgary What kind of validation result would you prefer?
|
I would prefer the second if it's not too much trouble. |
The validator update will land today. Do we need any spec changes? |
I don't think we should remove the restriction from the spec, but it might be useful to have an implementation note similar to what you referenced earlier in RFC-7159 (JSON), section 8.1. |
@lexaknyazev
https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#json-encoding
Is there a specific reason why we restrict it to "without BOM"? Can we add some validation to the validator?
#831 seems to talk about this, but I see no discussion on BOM.
The text was updated successfully, but these errors were encountered: