Menu

#133 PHP Notice: iconv(): Detected an illegal character in input string in simple_html_dom.php on line 806

closed
None
2018-12-06
2013-08-08
No

Discussion

  • xaccker

    xaccker - 2013-12-11

    I also got this error. I use lib version 1.5.
    I to debug your code and found an inaccuracy in one regular expression.
    You have inaccuracy in the method "parse_charset" in this row (1231)
    $success = preg_match('/charset=(.+)/', $fullvalue, $matches);
    Add to your pattern modifier "i", because if the text has html tags in a different register, the encoding is not determined correctly.

     
  • LogMANOriginal

    LogMANOriginal - 2018-12-05
    • status: open --> closed
    • assigned_to: LogMANOriginal
     
  • LogMANOriginal

    LogMANOriginal - 2018-12-05

    This is already fixed in master.

     

Log in to post a comment.