You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Ding Zhaolei (JIRA)" <ji...@apache.org> on 2008/03/21 08:59:24 UTC

[jira] Created: (WICKET-1439) DownloadLink cannot support chinese file name.

DownloadLink cannot support chinese file name.
----------------------------------------------

                 Key: WICKET-1439
                 URL: https://issues.apache.org/jira/browse/WICKET-1439
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.3.2
            Reporter: Ding Zhaolei
            Priority: Minor




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-1439) DownloadLink cannot support chinese file name.

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg updated WICKET-1439:
----------------------------------

    Fix Version/s: 1.5-M2
                       (was: 1.5-M1)

> DownloadLink cannot support chinese file name.
> ----------------------------------------------
>
>                 Key: WICKET-1439
>                 URL: https://issues.apache.org/jira/browse/WICKET-1439
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.2
>            Reporter: Ding Zhaolei
>            Priority: Minor
>             Fix For: 1.5-M2
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-1439) DownloadLink cannot support chinese file name.

Posted by "Ding Zhaolei (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581853#action_12581853 ] 

Ding Zhaolei commented on WICKET-1439:
--------------------------------------

i use as:
                String fileName = file.getName();
                try {
                    fileName = new String(fileName.getBytes("gb2312"), "iso8859-1");
                } catch (UnsupportedEncodingException ex) {
                    Logger.getLogger(ArchivesUploadForm.class.getName()).log(Level.SEVERE, null, ex);
                }

                item.add(downloadLink = new DownloadLink("file", file, fileName));

and it is ok.


> DownloadLink cannot support chinese file name.
> ----------------------------------------------
>
>                 Key: WICKET-1439
>                 URL: https://issues.apache.org/jira/browse/WICKET-1439
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.2
>            Reporter: Ding Zhaolei
>            Priority: Minor
>             Fix For: 1.5-M1
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-1439) DownloadLink cannot support chinese file name.

Posted by "Ding Zhaolei (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582124#action_12582124 ] 

Ding Zhaolei commented on WICKET-1439:
--------------------------------------

if we can auto check the File.getFileName() is UTF-8, gb2312, iso8859-1, or something else.  we can make Downloadlink more better.

> DownloadLink cannot support chinese file name.
> ----------------------------------------------
>
>                 Key: WICKET-1439
>                 URL: https://issues.apache.org/jira/browse/WICKET-1439
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.2
>            Reporter: Ding Zhaolei
>            Priority: Minor
>             Fix For: 1.5-M1
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-1439) DownloadLink cannot support chinese file name.

Posted by "Johan Compagner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581858#action_12581858 ] 

Johan Compagner commented on WICKET-1439:
-----------------------------------------

i am more interested in which one goes wrong (a unit test or something)
because we should try to use UTF8 everywhere and then chinese shouldnt be a problem.

> DownloadLink cannot support chinese file name.
> ----------------------------------------------
>
>                 Key: WICKET-1439
>                 URL: https://issues.apache.org/jira/browse/WICKET-1439
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.2
>            Reporter: Ding Zhaolei
>            Priority: Minor
>             Fix For: 1.5-M1
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-1439) DownloadLink cannot support chinese file name.

Posted by "Johan Compagner (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581386#action_12581386 ] 

Johan Compagner commented on WICKET-1439:
-----------------------------------------

why can't it support chinese file names?

> DownloadLink cannot support chinese file name.
> ----------------------------------------------
>
>                 Key: WICKET-1439
>                 URL: https://issues.apache.org/jira/browse/WICKET-1439
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.2
>            Reporter: Ding Zhaolei
>            Priority: Minor
>             Fix For: 1.5-M1
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (WICKET-1439) DownloadLink cannot support chinese file name.

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-1439.
-----------------------------------

         Assignee: Igor Vaynberg
    Fix Version/s:     (was: 1.5-M2)
       Resolution: Cannot Reproduce

ive played around with some strings and it seems to work ok on ie7 and ie8, might have been an ie6 thing. if you can still repro then please create a quickstart so i can see what you are seeing.

> DownloadLink cannot support chinese file name.
> ----------------------------------------------
>
>                 Key: WICKET-1439
>                 URL: https://issues.apache.org/jira/browse/WICKET-1439
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.2
>            Reporter: Ding Zhaolei
>            Assignee: Igor Vaynberg
>            Priority: Minor
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (WICKET-1439) DownloadLink cannot support chinese file name.

Posted by "Ding Zhaolei (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582122#action_12582122 ] 

Ding Zhaolei commented on WICKET-1439:
--------------------------------------

if UTF8 everywhere, why i use
  fileName = new String(fileName.getBytes("gb2312"), "UTF-8"); 

and on download dialog box of IE6, it show a wrong filename?


so i think, we must convert fileName to iso8859-1.

> DownloadLink cannot support chinese file name.
> ----------------------------------------------
>
>                 Key: WICKET-1439
>                 URL: https://issues.apache.org/jira/browse/WICKET-1439
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.2
>            Reporter: Ding Zhaolei
>            Priority: Minor
>             Fix For: 1.5-M1
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (WICKET-1439) DownloadLink cannot support chinese file name.

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg updated WICKET-1439:
----------------------------------

    Fix Version/s: 1.5-M1

> DownloadLink cannot support chinese file name.
> ----------------------------------------------
>
>                 Key: WICKET-1439
>                 URL: https://issues.apache.org/jira/browse/WICKET-1439
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.2
>            Reporter: Ding Zhaolei
>            Priority: Minor
>             Fix For: 1.5-M1
>
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.