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

SSE writer does not allow customizing the charset [SPR-16516] #21059

Closed
spring-projects-issues opened this issue Feb 19, 2018 · 2 comments
Closed
Assignees
Labels
in: web type: enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Feb 19, 2018

Michael Stadler opened SPR-16516 and commented

I've been struggling to set the encoding to UTF-8 for my text/event-stream content. I would like to change the encoding so that clients (e.g. the browser) knows how to interpret umlaut characters correctly (e.g. ä, ü, ö). I posted this problem on Stack Overflow (see Reference URL), where a more detailed description can be found. Thank you.


Affects: 5.0.4

Reference URL: https://stackoverflow.com/questions/48864564/spring-boot-webflux-set-utf-8-encoding

Issue Links:

  • #21082 Jackson Encoder(s) ignore charset in MimeType

Referenced from: commits e0e90ed

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Feb 21, 2018

Rossen Stoyanchev commented

Indeed the media type seems to be hardcoded to "text/event-stream", even though we actually use UTF-8 for the writing of data.

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Feb 26, 2018

Rossen Stoyanchev commented

This should now be fixed, as far as the Content-Type header and text rendered to the response are concerned. Separately I've created #21082 which should not impact this ticket, given the Jackson encoder uses UTF-8 by default, but is closely related nevertheless.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: web type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants