codeconsole commented on PR #15976:
URL: https://github.com/apache/grails-core/pull/15976#issuecomment-4949523409
Good call — moved the resolution into the classes themselves in bb78ee0197.
`DefaultRendererRegistry` and every renderer with an `encoding` property
(`DefaultHtmlRenderer`/`Json`/`Xml`, `AbstractLinkingRenderer`,
`AbstractVndErrorRenderer`) now carry
`@Value('${grails.converters.encoding:UTF-8}')`, and the explicit wiring in
`RestResponderGrailsPlugin` is gone. That way any renderer registered as a bean
— including user-registered HAL/Atom/Vnd.Error renderers — honors the config,
not just the registry bean the plugin defines. The field default stays UTF-8
for instances constructed outside Spring, and the registry still pushes its
encoding onto the non-bean defaults it creates. Added a spec that boots a
context with `grails.converters.encoding=ISO-8859-1` and verifies both the
registry and its renderers resolve it from the environment.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]