fix charset bugs

This commit is contained in:
2013-12-19 21:13:23 +01:00
parent ec8624d1e2
commit cebb186db6
8 changed files with 199 additions and 36 deletions
@@ -252,12 +252,14 @@ namespace ReadSharp.Ports.NReadability
MetaExtractor metaExtractor = new MetaExtractor(transcodedXmlDocument);
string charset = null;
string description = null;
Uri image = null;
Uri favicon = null;
if (metaExtractor.HasValue)
{
charset = metaExtractor.GetCharset();
description = metaExtractor.GetMetaDescription();
string imageString = metaExtractor.GetMetaImage();
string faviconString = metaExtractor.GetMetaFavicon();
@@ -283,6 +285,7 @@ namespace ReadSharp.Ports.NReadability
ExtractedFavicon = favicon,
ExtractedImage = image,
NextPageUrl = nextPageUrl,
Charset = charset,
Images = images
};
}