O
O
Optimus2015-09-18 13:32:41
JavaScript
Optimus, 2015-09-18 13:32:41

Someone parsed Russian PhantomJS text?

The problem is described on github https://github.com/ariya/phantomjs/issues/10988 but there is no solution yet. Under Windows everything seems to be fine.
Whoever from the Russian-speaking developers dug the problem, is there a solution?
The console shows that the text is there, but in the wrong encoding:
ad05205398b445c98fb4dad0e932d751.png
I tried to specify the encoding in the page.open method

page.open('https://site.ru/', {
        charset: 'utf-8', // или utf8
}, function(status) {

Didn't work, same result.
In JS, there is an analogue of the inconv function in PHP, can you try to recode the finished text with its help?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Sundukov, 2015-12-15
Pyan @marrk2

I use PhantomJS both version 1.8 and 2 on machines with debian7, ubuntu 12/14. There are sites both in utf-8 encoding and in 1251. Of course, all the text is in Cyrillic. I work through webdriver from php. No problem.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question