Api: Force merge placeholder charset to UTF-8, avoids mangled accent characters

This commit is contained in:
nathan 2021-12-03 11:36:02 -07:00
parent 5bd2b86683
commit 2453bafbe9

View File

@ -129,7 +129,7 @@ class Placeholder extends Etemplate\Widget
$entry = ['id' => $GLOBALS['egw_info']['user']['person_id']];
// fall through
default:
$merged = $merge->merge_string($content, [$entry['id']], $err, 'text/plain');
$merged = $merge->merge_string($content, [$entry['id']], $err, 'text/plain', null, 'utf8');
}
$response = Api\Json\Response::get();
$response->data($merged);