質問

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:

  1. Name Report in IE = TotalVisits-2014-01.PDF
  2. Name Report in Chrome = TotalVisits-2014-01.PDF
  3. Name report in Firefox = TotalVisits%2D;01%2D01.PDF

Anyone have an idea about the enconding Firefox

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top