From 7165921fdb7988bb136d5c6e05201eecdb0044fc Mon Sep 17 00:00:00 2001 From: John Whish Date: Mon, 10 Nov 2025 21:33:51 +0000 Subject: [PATCH] JSON should be utf-8 encoded Note that renderData already defaults to utf-8 encoding COLDBOX-1370 --- system/Bootstrap.cfc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/Bootstrap.cfc b/system/Bootstrap.cfc index 82ad3d3da..53abfb49c 100644 --- a/system/Bootstrap.cfc +++ b/system/Bootstrap.cfc @@ -307,7 +307,7 @@ component serializable="false" accessors="true" { // ColdBox does native JSON if you return a complex object. else { renderedContent = cbController.getUtil().toJson( local.refResults.results ); - getPageContextResponse().setContentType( "application/json" ); + getPageContextResponse().setContentType( "application/json;charset=utf-8" ); } } // Render Layout/View pair via set variable to eliminate whitespace