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
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
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); },
escape encodes "ą" as '%u0105' which can't be decoded using decodeURIComponent.
Please update getPrintFrameURL to use encodeURIComponent.
Best regards,
Janusz
Comment