Skip to content

Conversation

@aliaspooryorik
Copy link
Contributor

Description

When ColdBox handlers return complex data then ColdBox automatically converts it to JSON and serves it with the application/json content type. As JSON should be utf-8 encoded then append the charset to the header to ensure characters are encoded correctly.

JSON Spec: https://www.rfc-editor.org/rfc/rfc8259#section-8.1

Note that event.renderData() already defaults to utf-8 encoding

Jira Issues

https://ortussolutions.atlassian.net/browse/COLDBOX-1370

Type of change

Please delete options that are not relevant.

  • Improvement

Note that renderData already defaults to utf-8 encoding COLDBOX-1370
@lmajano lmajano merged commit 71ae20a into ColdBox:development Nov 11, 2025
11 checks passed
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

Successfully merging this pull request may close these issues.

2 participants