Skip to content

Commit 8d847e7

Browse files
ZarToKthijskh
authored andcommitted
Fix multi-byte characters beeing messed up.
1 parent bc266c0 commit 8d847e7

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/SimpleSAML/Metadata/SAMLBuilder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ public function getEntityDescriptorText(bool $formatted = true): string
135135
$xmlUtils->formatDOMElement($xml);
136136
}
137137

138+
$xml->ownerDocument->encoding = "utf-8";
139+
138140
return $xml->ownerDocument->saveXML();
139141
}
140142

0 commit comments

Comments
 (0)