Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Bug in 13.1 PrintCanvas

    Hi,

    In PrintCanvas.getPrintFrameURL title is encoded for use in URL using escape(title), while later in printFrame.html it is being decoded in isc.Params using decodeUriComponent

    Code:
    getPrintFrameURL : function (title) {
        var url = this.printFrameURL;
        // use "&" rather than "?" if there are already params in the printFrameURL
        url += (url.contains("?") ? "&" : "?");
        url += "id="+this.getID() + "&title=" + (escape(title) || "");
        // isc._printWithDensity can be set globally and applies every time - _printWithDensityThisTime
        // will apply density to just this call to getPrintFrameURL(), and is then cleared
        if (isc._printWithDensity || isc._printWithDensityThisTime) {
            url += "&applyDensity=1";
            delete isc._printWithDensityThisTime;
        }
        return isc.Page.getURL(url);
    },
    Problem occurs when title contains special characters (EN "Print preview" => PL "Podgląd wydruku")
    escape encodes "ą" as '%u0105' which can't be decoded using decodeURIComponent.

    Please update getPrintFrameURL to use encodeURIComponent.

    Best regards,
    Janusz

    #2
    We've addressed the issue. Please retest with tomorrow's builds, February 4.

    Best Regards
    Isomorphic Software

    Comment


      #3
      Does this mean that my problem has also been solved?
      https://forums.smartclient.com/forum...85-print-error

      Comment

      Working...
      X