1--TEST--
2Dom\HTMLDocument fallback encoding test
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = Dom\HTMLDocument::createFromFile(__DIR__ . "/fallback_encoding.html");
9var_dump($dom->inputEncoding);
10echo $dom->saveHtml();
11
12?>
13--EXPECT--
14string(5) "UTF-8"
15<!DOCTYPE html><html><head>
16<meta charset="I don't exist">
17</head>
18<body>
19</body></html>
20