Closed vorou closed 10 years ago
Render by default encodes non-ascii characters but you can easily change this, e.g.
Console.Out.WriteLine(page.Render(OutputFormatters.HtmlEncodingMinimum));
Detailed explanation of the OutputFormatter
object us here:
https://github.com/jamietre/CsQuery/blob/master/documentation/render.md
Oh, thank you, I really should have looked for it harder.
Here's the code:
Page is in UTF-8, and it's detected properly within
CreateFromUrl
. However, here's a fragment of the output:Notice that Russian text looks OK in
title
attribute (last line), but intitle
's text it's in numeric char reference form.Am I doing something wrong?