php-simple-html-dom-parser icon indicating copy to clipboard operation
php-simple-html-dom-parser copied to clipboard

innerText() not returning valid utf-8 string

Open paquettg opened this issue 11 years ago • 0 comments

When you attempt to get the text of an element that has no html elements in it it returns a non-utf-8 encoded string. An element such as

<h3>Технические работы на сервере<h3>

the string returned by innerText() is not encoded properly but the string returned by outerText() is returned with the proper encoding. This refers to the simple_html_dom_node class.

paquettg avatar Nov 28 '13 02:11 paquettg