Skip to content

Commit

Permalink
Force UTF-8 mode
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Sep 28, 2015
1 parent 20d4cc2 commit 7539011
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Dom/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ public function __construct($source = null, $config = null) {
$this->domDocument->document = $this;
$uuid = uniqid("nodeMap-", true);
$this->domDocument->uuid = $uuid;
$this->domDocument->encoding = "utf-8";

// Find and reference the DOCTYPE element:
foreach ($this->childNodes as $rootChild) {
Expand Down

0 comments on commit 7539011

Please sign in to comment.