K
K
kosmok2020-06-29 17:22:41
PHP
kosmok, 2020-06-29 17:22:41

Parser on phpQuery does not display Russian letters?

Hello, I have such an error. When parsing a site on phpQuery, here is the code

$html = file_get_contents("https://torrent-igruha.org/arcade/");

phpQuery::newDocument($html);

$temp = pq("div.article-film");

echo $temp;

phpQuery::unloadDocuments();


displays �. I added to .htaccess AddDefaultCharset UTF-8 and added nothing, it doesn't help.
<meta charset="UTF-8">

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Sharomet, 2020-06-29
@sharomet

Can you help with PHPquery encoding?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question