Tab to KML: System.NotSupportedException

https://cdn.filestar.com/uploads/1c4c3755-19a6-4eda-bfa9-6c24ad7e25e2/RAZ-06_DR.zip

System.NotSupportedException: No data is available for encoding 1252. For information on defining a custom encoding, see the documentation for the Encoding.RegisterProvider method.
at System.Text.Encoding.GetEncoding(Int32 codepage)
at 05 .03(String 02)
at 08 .0F (Stream 02)
at 08 .06(05 02)
at 03 .08 (Object 02)
at 03 .08 (Object 02)
at 03 .05 (MethodBase 02, Boolean 03)
at 03 .05 (03 02, 0F 03)
at 03 .02 ()
at 03 .05 (Boolean 02)
at 03 .08 (Object 02)
at 03 .08 (Object 02)
at 03 .08 (03 02, 0F 03)
at 03 .02 ()
at 03 .05 (Boolean 02)
at 03 .08 (Object 02)
at 03 .08 (Object 02)
at 03 .0E ()
at 03 .08 (Object 02, UInt32 03)
at 03 .05 (Boolean 02)
at 03 .05 (Boolean 02)
at 03 .0F (Object[] 02, Type[] 03, Type[] 05, Object[] 08)
at 03 .0E (Int32 02, Type[] 03, Type[] 05, Boolean 08)
at 03 .0F (03 02, 0F 03)
at 03 .02 ()
at 03 .05 (Boolean 02)
at 03 .08 (Object 02)
at 03 .08 (Object 02)
at 03 .0E ()
at 03 .08 (Object 02, UInt32 03)
at 03 .05 (Boolean 02)
at 03 .0F (Object[] 02, Type[] 03, Type[] 05, Object[] 08)
at 03 .0E​ (Stream 02, String 03, Object[] 05, Type[] 08, Type[] 06, Object[] 0E)
at 03 .0E (Stream 02, String 03, Object[] 05)
at Aspose.Gis.Formats.MapInfoTab.MapInfoTabDriver.OpenLayer(AbstractPath path, DriverOptions options)
at Aspose.Gis.VectorLayer.Open(AbstractPath path, FileDriver driver, DriverOptions options)
at Aspose.Gis.VectorLayer.Convert(AbstractPath sourcePath, FileDriver sourceDriver, AbstractPath destinationPath, FileDriver destinationDriver, ConversionOptions options)

Hi, @nielsbosma

We have reproduced this problem and created a ticket GISNET-1359. We will notify you here as we will have progress with it.

Thanks

Hi, @nielsbosma
We have explored your request.

.NET Core supports only ASCII, ISO-8859-1 and Unicode encodings, whereas .NET Framework supports much more. However, .NET Core can be extended to support additional encodings like Windows-1252 by registering the CodePagesEncodingProvider from the System.Text.Encoding.CodePages NuGet package.

Please, try to do following:

  1. nuget:
    Install-Package System.Text.Encoding.CodePages
  2. Before making convert operation add code:
    System.Text.Encoding.RegisterProvider(System.Text.CodePagesEncodingProvider.Instance);

Thanks this worked perfectly!