.NET 5 UTF-7 encoding
Posted: Sun Nov 15, 2020 12:18 pm
Tried the angular viewer component in .NET 5 however I get the following exception
System.NotSupportedException: 'Support for UTF-7 is disabled. See https://aka.ms/dotnet-warnings/SYSLIB0001 for more information.'
StackTrace:
at System.Text.Encoding.GetEncoding(Int32 codepage)
at Stimulsoft.Report.Web.StiCollectionsHelper.<>c__DisplayClass1_0.<GetEncodingDataItems>b__0(Int32 e)
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at Stimulsoft.Report.Web.StiCollectionsHelper.GetEncodingDataItems()
at Stimulsoft.Report.Angular.StiAngularViewer.ViewerDataResult(StiRequestParams requestParams, StiAngularViewerOptions options)
tried this in startup yet no change:
StiOptions.Web.WebClientEncoding = Encoding.UTF8;
is there any other option to set encoding?
System.NotSupportedException: 'Support for UTF-7 is disabled. See https://aka.ms/dotnet-warnings/SYSLIB0001 for more information.'
StackTrace:
at System.Text.Encoding.GetEncoding(Int32 codepage)
at Stimulsoft.Report.Web.StiCollectionsHelper.<>c__DisplayClass1_0.<GetEncodingDataItems>b__0(Int32 e)
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at Stimulsoft.Report.Web.StiCollectionsHelper.GetEncodingDataItems()
at Stimulsoft.Report.Angular.StiAngularViewer.ViewerDataResult(StiRequestParams requestParams, StiAngularViewerOptions options)
tried this in startup yet no change:
StiOptions.Web.WebClientEncoding = Encoding.UTF8;
is there any other option to set encoding?