Answer the question
In order to leave comments, you need to log in
How to parse a site if two encodings iso-8859-1 and utf-8 are specified?
I load the page via curl (I also tried it via file_get_contents), I didn’t change the encodings either via iconv or via mb_detect_encoding and tried to connect libraries, nothing happens.
Here are the two tags indicated in the header?
meta http-equiv="content-type" content="text/html; charset=iso-8859-1"
meta http-equiv="Content-Type" content="text/html; charset=utf-8"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question