diff --git a/CHANGELOG.md b/CHANGELOG.md index 9b9c78b..e521e51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +### 4.2.0 + +- use custom encoders if not supported on platform (implemented for ISO-8859 and Windows range). + ### 4.1.0 - extract description, favicon and front image from meta tags diff --git a/ReadSharp/Properties/AssemblyInfo.cs b/ReadSharp/Properties/AssemblyInfo.cs index 8c2e60a..09a890c 100644 --- a/ReadSharp/Properties/AssemblyInfo.cs +++ b/ReadSharp/Properties/AssemblyInfo.cs @@ -22,5 +22,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("4.1.0")] -[assembly: AssemblyFileVersion("4.1.0")] \ No newline at end of file +[assembly: AssemblyVersion("4.2.0")] +[assembly: AssemblyFileVersion("4.2.0")] \ No newline at end of file diff --git a/ReadSharp/Reader.cs b/ReadSharp/Reader.cs index c9d095f..c85097c 100644 --- a/ReadSharp/Reader.cs +++ b/ReadSharp/Reader.cs @@ -247,33 +247,5 @@ namespace ReadSharp Charset = response.Content.Headers.ContentType.CharSet }; } - - - /// - /// Gets the encoding from string. - /// - /// The encoding. - /// - private Encoding GetEncodingFromString(string encoding) - { - Encoding correctEncoding; - //System.Activator.CreateInstance(Type.GetType("Class1")); - - if (String.IsNullOrEmpty(encoding)) - { - return null; - } - - try - { - correctEncoding = Encoding.GetEncoding(encoding); - } - catch - { - return null; - } - - return correctEncoding; - } } } \ No newline at end of file