A
A
aqwe1092016-01-31 17:01:22
Parsing
aqwe109, 2016-01-31 17:01:22

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

2 answer(s)
C
coderisimo, 2016-01-31
@coderisimo

maybe this will help?
https://habrahabr.ru/post/107945/

A
aqwe109, 2016-01-31
@aqwe109

Here the site dsh.kurganobl.ru
gives ������
������
������: �����������, �������� �����
���������� ������������
�������� ��������
������� �������
����� ��������

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question