Skip to content

Commit

Permalink
Merge pull request #2599 from department-of-veterans-affairs/bug/LEAF…
Browse files Browse the repository at this point in the history
…-4584/special-character-in-request-title

LEAF-4584 - Special Character in request email not displaying correctly
Pelentan authored Nov 20, 2024
2 parents f39d97d + 5724c1e commit ff02569
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion LEAF-Automated-Tests
2 changes: 1 addition & 1 deletion LEAF_Request_Portal/sources/Email.php
Original file line number Diff line number Diff line change
@@ -415,7 +415,7 @@ function initNexusDB(): void
private function getHeaders(): string
{
$header = 'MIME-Version: 1.0';
$header .= "\r\nContent-type: text/html; charset=iso-8859-1";
$header .= "\r\nContent-type: text/html; charset=utf-8";
if ($this->emailSender == '') {
$header .= "\r\nFrom: {$this->emailFrom}";
} else {
2 changes: 1 addition & 1 deletion LEAF_Request_Portal/sources/FormWorkflow.php
Original file line number Diff line number Diff line change
@@ -1672,7 +1672,7 @@ private function getFields(): array
default:
break;
}
$data = iconv('UTF-8', 'ISO-8859-1//TRANSLIT', $data);

$formattedFields["content"][$field['indicatorID']] = $data !== "" ? $data : $field["default"];
$formattedFields["to_cc_content"][$field['indicatorID']] = $emailValue;
}

0 comments on commit ff02569

Please sign in to comment.