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

Json LD response are encoded to HTML chars ? #2648

Open
BenWaNH opened this issue Feb 29, 2024 · 0 comments
Open

Json LD response are encoded to HTML chars ? #2648

BenWaNH opened this issue Feb 29, 2024 · 0 comments

Comments

@BenWaNH
Copy link

BenWaNH commented Feb 29, 2024

API Platform version(s) affected: 2.7

Description
I meet a curious issue with my actual Api Platform projet. My API response is not encoded in the same way according content negotiation if i've a value with some special chars like éàù
If i request my Account entity endpoint: /accounts/{id}
My response in jsonld:

{
    "@context": "/api/contexts/Account",
    "@id": "/api/accounts/2",
    "@type": "Account",
    "id": 2,
    "name": "TEST 2 é à ù"
 }

My response in json:

{
    "id": 2,
    "name": "TEST 2 é à ù"
 }

So it's not display correctly on client side, is it normal??
Do i miss something?

Thanks
BenWa

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

1 participant