Skip to content

Replace text encoding function#54

Open
carsguru wants to merge 1 commit intosunra:masterfrom
carsguru:master
Open

Replace text encoding function#54
carsguru wants to merge 1 commit intosunra:masterfrom
carsguru:master

Conversation

@carsguru
Copy link

Changed encoding function in convert_text. There was iconv, but now is
mb_convert_encoding. It needs, because when we pass HTML in UTF-8
during creating instance of simple_html_dom and target character set
windows-1251 and want to get some text through ->text() sometimes we
catch an error "iconv(): Detected an illegal character in input string".

Changed encoding function in convert_text. There was iconv, but now is
mb_convert_encoding. It needs, because when we pass HTML in UTF-8
during creating instance of simple_html_dom and target character set
windows-1251 and want to get some text through ->text() sometimes we
catch an error "iconv(): Detected an illegal character in input string".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants