Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2350

Filedownload with file name contain empty string become to "+" sign in IE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.5.7, 7.0.3
    • 6.5.6
    • Components
    • Security Level: Jimmy
    • IE

      The downloaded file name with empty string become '+' sign in IE
      Reproducible sample:

      <zk>
      	<zscript><![CDATA[
      	import org.zkoss.zul.Filedownload;
      	import java.io.InputStream;
      	import java.io.ByteArrayInputStream;
      	import org.zkoss.util.media.AMedia;
      	import java.net.URLEncoder;
      	import org.zkoss.lang.Strings;
      	
      	void download() throws Exception {
      		InputStream is = new ByteArrayInputStream("test".getBytes("utf-8"));
      		AMedia media = new AMedia("測 試", "txt", "text/plain", is);
      		Filedownload.save(media);
      	}
      	]]></zscript>
      	<button label="download" onClick="download()">
      	</button>
      </zk>
      

            jumperchen jumperchen
            vincentjian vincentjian
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: