You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying out the new relay compiler and ran into a weird unsupported character issue. After some research I found out it is due to our schema.graphql file having UTF-8 with BOM and not just UTF-8 encoding: facebook/relay#3798 (comment)
Steps to reproduce
Download your GraphQL schema like this: curl localhost:5000/graphql?sdl -o ./src/schema.graphql
Fixed this in the relay compiler: facebook/relay#3908, but I think it might still be good to also merge my PR here, since this might also cause issues with other tools...
Is there an existing issue for this?
Describe the bug
I was trying out the new relay compiler and ran into a weird unsupported character issue. After some research I found out it is due to our
schema.graphql
file havingUTF-8 with BOM
and not justUTF-8
encoding: facebook/relay#3798 (comment)Steps to reproduce
Download your GraphQL schema like this:
curl localhost:5000/graphql?sdl -o ./src/schema.graphql
Relevant log output
No response
Additional Context?
The issue is this: https://github.com/ChilliCream/hotchocolate/blob/61936613166e64665ab29d873c965a68084eb0df/src/HotChocolate/Language/src/Language.SyntaxTree/Utilities/SyntaxPrinter.cs#L68
It should be
new UTF8Encoding(false)
instead ofEncoding.UTF8
.Product
Hot Chocolate
Version
13.0.0-preview.15
The text was updated successfully, but these errors were encountered: