I try to use CsQuery for parsing html. There is a set of divs in the html document with the class some_class. Inside every diva is a text in Russian. I try to parse divas as follows:
//... CQ cq = CQ.Create(html, Encoding.UTF8); List<IDomObject> items = cq.Find("div.some_class").ToList(); // Демо код для просмотра содержимого item-ов items.ForEach(x => var test = x.InnerText); As a result, the text in the test is presented in hexadecimal code. I rummaged in IDomObject, I did not find a way to set the encoding. It is also not clear why the encoding flies if I set it when creating the cq object.
Has anyone encountered a similar situation?