devs, I am facing a simple issue, but I couldn't figure out the actual reason. I have a lot of reports in my ASP.NET Core 5 with angular 12 project. everything is rendered correctly except UNICODE Character.
see the below code example.
public static void Load(LocalReport report, decimal widgetPrice, decimal gizmoPrice)
{
var items = new[]
{
new ReportItem { Description = "Widget 6000 আমাদের A দেশের নাম বাংলাদেশ", Price = widgetPrice, Qty = 1 },
new ReportItem { Description = "Gizmo MAX", Price = gizmoPrice, Qty = 25 }
};
var parameters = new[] { new ReportParameter("Title", "Invoice 4/2020") };
using var rs = Assembly.GetExecutingAssembly()
.GetManifestResourceStream("ReportViewerCore.Sample.AspNetCore.Reports.Report.rdlc");
report.LoadReportDefinition(rs); report.DataSources.Add(new ReportDataSource("Items", items));
report.SetParameters(parameters);
}
In the first ReportItem.Description= "Widget 6000 + some Unicode character in my language". when I print this in HTML, doc, and Xls, it renders everything well with Unicode. but in pdf, it ignores the characters or doesn't print properly the Unicode section. except for this, everything is okay.