That's percent encoding or URL encoding, basically, in an URL instead of displaying a dash (-), it encodes it as %2D;, this is mainly because certain characters may have an special meaning (reserved) and when they appear in an URL outside their special meaning, they should be encoded so as they're not confused.
DisplayName the Reporting Services encoding characters in firefox
Question
My problem is that I generate the pdf with ReportViewer Dynamic
Example:
> StringBuilder nameReport= new StringBuilder();
> nameReport.Append(report.Chartname.ToString());
> nameReport.Append("-");
> nameReport.Append(year.ToString());
> nameReport.Append("-");
> nameReport.Append(month.ToString());
> rv.ServerReport.DisplayName = nameReport.ToString();
Output:
- Name Report in IE = TotalVisits-2014-01.PDF
- Name Report in Chrome = TotalVisits-2014-01.PDF
- Name report in Firefox = TotalVisits%2D;01%2D01.PDF
Anyone have an idea about the enconding Firefox
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow