Answer the question
In order to leave comments, you need to log in
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:
I tried to specify the encoding in the page.open method
page.open('https://site.ru/', {
charset: 'utf-8', // или utf8
}, function(status) {
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question