I run the following code:
$page = '<p>Γ</p>'; $DOM = new DOMDocument; $DOM->loadHTML($page); echo 'source:'.$page; echo 'dom: '.$DOM->getElementsByTagName('p')->item (0)->textContent;
and displays the following:
source: Γ
dom: Γ
So, I donβt understand why, when the text comes through the DOMDocument, its encoding is interrupted?
php encoding domdocument
Mike 01 Oct 2018-12-12T00: 00Z
source share