Skip to content

Invalid character. #19

@mscottco

Description

@mscottco

Hi there,

I seem to be having an issue with selected articles which causes an error like ''�', hexadecimal value 0x08, is an invalid character.' to occur.

An example article is http://www.lifehacker.com.au/2015/01/read-more-every-day-by-creating-reading-triggers/

This is running ASP.NET 4.0 and the NReadability package was downloaded via NUGet.

Current running code is:
NReadability.NReadabilityWebTranscoder tc = new NReadability.NReadabilityWebTranscoder();
NReadability.WebTranscodingInput ti = new NReadability.WebTranscodingInput(url);
NReadability.WebTranscodingResult tcr = tc.Transcode(ti); //Exception thrown on this line.
Response.Write(tcr.ExtractedContent);

(however I've tried variations of different code, including that which is included in the readme)

I reliase this is due to incorrect tags being read by the Xml reader within NReadability however I do not seem to be able to work around this.

Suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions