Open cartics opened 10 years ago
Not able to reproduce this in a simple test, e.g.
... save amazon.com homepage as "c:\amazon.html"
var test = File.ReadAllText("c:\\amazon.html");
var cq = CQ.CreateDocument(test);
var cq2 = CQ.CreateDocumentFromFile(filename);
.. works fine. This must have something specifically to do with the content, perhaps with character set conversion when saving? I would take a look at the contents of the file as saved from your browser.
I can repro this consistently with the following site: http://courthouseproperty.com/ Since I am not able to attach the text file, I can send the text file separately.
Update: added stack trace
Sample code with bug:
Code which works with filename:
Stack Trace: