【问题标题】:DisplayName the Reporting Services encoding characters in firefoxDisplayName Firefox 中的 Reporting Services 编码字符
【发布时间】:2014-02-21 19:44:40
【问题描述】:

我的问题是我使用 ReportViewer Dynamic 生成 pdf

例子:

                > 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();

输出:

  1. IE 中的名称报告 = TotalVisits-2014-01.PDF
  2. Chrome 中的名称报告 = TotalVisits-2014-01.PDF
  3. Firefox 中的名称报告 = TotalVisits%2D;01%2D01.PDF

任何人都知道关于 Firefox 的想法

【问题讨论】:

    标签: c# .net firefox service reporting


    【解决方案1】:

    那是percent encoding or URL encoding,基本上是在 URL 中而不是显示破折号 (-),它会将其编码为 %2D;,这主要是因为某些字符可能具有特殊含义(保留)并且当它们出现在超出其特殊含义的 URL,应对其进行编码以免混淆。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-03-29
      相关资源
      最近更新 更多