You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "LinuxBoy (JIRA)" <ta...@jakarta.apache.org> on 2007/02/23 15:40:05 UTC

[jira] Created: (TAPESTRY-1294) localization problem: the data sumitted from form can't display correctly in non english, such as chinese.

localization problem: the data sumitted from  form can't display correctly in non english, such as chinese.
-----------------------------------------------------------------------------------------------------------

                 Key: TAPESTRY-1294
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1294
             Project: Tapestry
          Issue Type: Bug
          Components: Core
    Affects Versions: 5.0
         Environment: Container: Tomcat 5.5.20 or jetty 6.1
OS: Winxp Sp2
Language: Simplifiey Chinese
            Reporter: LinuxBoy


1. The following problem is only in Tapestry-5.0.2:
      I input chinese words into a form in Login page, and then turn to Start page. Start page can't display chinese. 
      For example, I input chinese "中国" in Login page, and I just see "&#20013;&#22269;" in Start page. 
      It looks like the data of form is encoded in ascii, not in UTF-8.
      The problem still exists even I change the app locale to "zh".
2.The following problems are both  in Tapestry-5.0.1 and Tapestry-5.0.2:
      (1) When the content of HTML template has non english words, such as chinese, the page can't display the words correctly.
       We can only see "?" in the page, but english content is ok.
      (2) When the page class returns a chinese string directly, we can only see "?" in the page at runtime.
            For example: 
            In Start.html: ${hello}
            In Start.java: public String getHello(){return "中国( some chinese words)!";}
            The start page will display "??( some chinese words)!" at runtime.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-1294) localization problem: the data sumitted from form can't display correctly in non english, such as chinese.

Posted by "LinuxBoy (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

LinuxBoy updated TAPESTRY-1294:
-------------------------------

    Attachment: codefiles.zip

jasongreen (at javaeye.com) has modified some T5 source files, including RequestImpl.java, ResponseImpl.java, MessageSourceImpl.java, and adding a class named UTF8Properties.java, to improve chinese support.
The files mentioned above are all in codefiles.zip file.

> localization problem: the data sumitted from  form can't display correctly in non english, such as chinese.
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1294
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1294
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0
>         Environment: Container: Tomcat 5.5.20 or jetty 6.1
> OS: Winxp Sp2
> Language: Simplifiey Chinese
>            Reporter: LinuxBoy
>             Fix For: 5.0
>
>         Attachments: codefiles.zip
>
>
> 1. The following problem is only in Tapestry-5.0.2:
>       I input chinese words into a form in Login page, and then turn to Start page. Start page can't display chinese. 
>       For example, I input chinese "中国" in Login page, and I just see "&#20013;&#22269;" in Start page. 
>       It looks like the data of form is encoded in ascii, not in UTF-8.
>       The problem still exists even I change the app locale to "zh".
> 2.The following problems are both  in Tapestry-5.0.1 and Tapestry-5.0.2:
>       (1) When the content of HTML template has non english words, such as chinese, the page can't display the words correctly.
>        We can only see "?" in the page, but english content is ok.
>       (2) When the page class returns a chinese string directly, we can only see "?" in the page at runtime.
>             For example: 
>             In Start.html: ${hello}
>             In Start.java: public String getHello(){return "中国( some chinese words)!";}
>             The start page will display "??( some chinese words)!" at runtime.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-1294) localization problem: the data sumitted from form can't display correctly in non english, such as chinese.

Posted by "LinuxBoy (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

LinuxBoy updated TAPESTRY-1294:
-------------------------------

    Fix Version/s:     (was: 5.0)
                   5.0.4

> localization problem: the data sumitted from  form can't display correctly in non english, such as chinese.
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1294
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1294
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0
>         Environment: Container: Tomcat 5.5.20 or jetty 6.1
> OS: Winxp Sp2
> Language: Simplifiey Chinese
>            Reporter: LinuxBoy
>             Fix For: 5.0.4
>
>         Attachments: codefiles.zip
>
>
> 1. The following problem is only in Tapestry-5.0.2:
>       I input chinese words into a form in Login page, and then turn to Start page. Start page can't display chinese. 
>       For example, I input chinese "中国" in Login page, and I just see "&#20013;&#22269;" in Start page. 
>       It looks like the data of form is encoded in ascii, not in UTF-8.
>       The problem still exists even I change the app locale to "zh".
> 2.The following problems are both  in Tapestry-5.0.1 and Tapestry-5.0.2:
>       (1) When the content of HTML template has non english words, such as chinese, the page can't display the words correctly.
>        We can only see "?" in the page, but english content is ok.
>       (2) When the page class returns a chinese string directly, we can only see "?" in the page at runtime.
>             For example: 
>             In Start.html: ${hello}
>             In Start.java: public String getHello(){return "中国( some chinese words)!";}
>             The start page will display "??( some chinese words)!" at runtime.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-1294) Tapestry does not set an output encoding which prevents Unicode content from being output correctly

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-1294:
-------------------------------------------

    Environment: 
Container: Tomcat 5.5.20 or jetty 6.1
OS: Winxp Sp2
Language: Simplified Chinese

  was:
Container: Tomcat 5.5.20 or jetty 6.1
OS: Winxp Sp2
Language: Simplifiey Chinese

        Summary: Tapestry does not set an output encoding which prevents Unicode content from being output correctly  (was: localization problem: the data sumitted from  form can't display correctly in non english, such as chinese.)

The provided "patch" didn't come with test cases, so I was forced to start from scratch. I'm replicating most of what T4 does in this respect.  Page meta data will define the content type and (if the type does not specify a charset) then the charset will be obtained as additional meta data.

> Tapestry does not set an output encoding which prevents Unicode content from being output correctly
> ---------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1294
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1294
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0
>         Environment: Container: Tomcat 5.5.20 or jetty 6.1
> OS: Winxp Sp2
> Language: Simplified Chinese
>            Reporter: LinuxBoy
>            Assignee: Howard M. Lewis Ship
>         Attachments: codefiles.zip
>
>
> 1. The following problem is only in Tapestry-5.0.2:
>       I input chinese words into a form in Login page, and then turn to Start page. Start page can't display chinese. 
>       For example, I input chinese "中国" in Login page, and I just see "&#20013;&#22269;" in Start page. 
>       It looks like the data of form is encoded in ascii, not in UTF-8.
>       The problem still exists even I change the app locale to "zh".
> 2.The following problems are both  in Tapestry-5.0.1 and Tapestry-5.0.2:
>       (1) When the content of HTML template has non english words, such as chinese, the page can't display the words correctly.
>        We can only see "?" in the page, but english content is ok.
>       (2) When the page class returns a chinese string directly, we can only see "?" in the page at runtime.
>             For example: 
>             In Start.html: ${hello}
>             In Start.java: public String getHello(){return "中国( some chinese words)!";}
>             The start page will display "??( some chinese words)!" at runtime.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-1294) localization problem: the data sumitted from form can't display correctly in non english, such as chinese.

Posted by "LinuxBoy (JIRA)" <ta...@jakarta.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

LinuxBoy updated TAPESTRY-1294:
-------------------------------

    Fix Version/s: 5.0

> localization problem: the data sumitted from  form can't display correctly in non english, such as chinese.
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1294
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1294
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 5.0
>         Environment: Container: Tomcat 5.5.20 or jetty 6.1
> OS: Winxp Sp2
> Language: Simplifiey Chinese
>            Reporter: LinuxBoy
>             Fix For: 5.0
>
>
> 1. The following problem is only in Tapestry-5.0.2:
>       I input chinese words into a form in Login page, and then turn to Start page. Start page can't display chinese. 
>       For example, I input chinese "中国" in Login page, and I just see "&#20013;&#22269;" in Start page. 
>       It looks like the data of form is encoded in ascii, not in UTF-8.
>       The problem still exists even I change the app locale to "zh".
> 2.The following problems are both  in Tapestry-5.0.1 and Tapestry-5.0.2:
>       (1) When the content of HTML template has non english words, such as chinese, the page can't display the words correctly.
>        We can only see "?" in the page, but english content is ok.
>       (2) When the page class returns a chinese string directly, we can only see "?" in the page at runtime.
>             For example: 
>             In Start.html: ${hello}
>             In Start.java: public String getHello(){return "中国( some chinese words)!";}
>             The start page will display "??( some chinese words)!" at runtime.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-1294) localization problem: the data sumitted from form can't display correctly in non english, such as chinese.

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-1294:
-------------------------------------------

    Fix Version/s:     (was: 5.0.5)

> localization problem: the data sumitted from  form can't display correctly in non english, such as chinese.
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1294
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1294
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0
>         Environment: Container: Tomcat 5.5.20 or jetty 6.1
> OS: Winxp Sp2
> Language: Simplifiey Chinese
>            Reporter: LinuxBoy
>         Attachments: codefiles.zip
>
>
> 1. The following problem is only in Tapestry-5.0.2:
>       I input chinese words into a form in Login page, and then turn to Start page. Start page can't display chinese. 
>       For example, I input chinese "中国" in Login page, and I just see "&#20013;&#22269;" in Start page. 
>       It looks like the data of form is encoded in ascii, not in UTF-8.
>       The problem still exists even I change the app locale to "zh".
> 2.The following problems are both  in Tapestry-5.0.1 and Tapestry-5.0.2:
>       (1) When the content of HTML template has non english words, such as chinese, the page can't display the words correctly.
>        We can only see "?" in the page, but english content is ok.
>       (2) When the page class returns a chinese string directly, we can only see "?" in the page at runtime.
>             For example: 
>             In Start.html: ${hello}
>             In Start.java: public String getHello(){return "中国( some chinese words)!";}
>             The start page will display "??( some chinese words)!" at runtime.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Assigned: (TAPESTRY-1294) localization problem: the data sumitted from form can't display correctly in non english, such as chinese.

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAPESTRY-1294:
----------------------------------------------

    Assignee: Howard M. Lewis Ship

> localization problem: the data sumitted from  form can't display correctly in non english, such as chinese.
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1294
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1294
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0
>         Environment: Container: Tomcat 5.5.20 or jetty 6.1
> OS: Winxp Sp2
> Language: Simplifiey Chinese
>            Reporter: LinuxBoy
>            Assignee: Howard M. Lewis Ship
>         Attachments: codefiles.zip
>
>
> 1. The following problem is only in Tapestry-5.0.2:
>       I input chinese words into a form in Login page, and then turn to Start page. Start page can't display chinese. 
>       For example, I input chinese "中国" in Login page, and I just see "&#20013;&#22269;" in Start page. 
>       It looks like the data of form is encoded in ascii, not in UTF-8.
>       The problem still exists even I change the app locale to "zh".
> 2.The following problems are both  in Tapestry-5.0.1 and Tapestry-5.0.2:
>       (1) When the content of HTML template has non english words, such as chinese, the page can't display the words correctly.
>        We can only see "?" in the page, but english content is ok.
>       (2) When the page class returns a chinese string directly, we can only see "?" in the page at runtime.
>             For example: 
>             In Start.html: ${hello}
>             In Start.java: public String getHello(){return "中国( some chinese words)!";}
>             The start page will display "??( some chinese words)!" at runtime.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-1294) localization problem: the data sumitted from form can't display correctly in non english, such as chinese.

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAPESTRY-1294:
-------------------------------------------

    Fix Version/s:     (was: 5.0.4)
                   5.0.5

> localization problem: the data sumitted from  form can't display correctly in non english, such as chinese.
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1294
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1294
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0
>         Environment: Container: Tomcat 5.5.20 or jetty 6.1
> OS: Winxp Sp2
> Language: Simplifiey Chinese
>            Reporter: LinuxBoy
>             Fix For: 5.0.5
>
>         Attachments: codefiles.zip
>
>
> 1. The following problem is only in Tapestry-5.0.2:
>       I input chinese words into a form in Login page, and then turn to Start page. Start page can't display chinese. 
>       For example, I input chinese "中国" in Login page, and I just see "&#20013;&#22269;" in Start page. 
>       It looks like the data of form is encoded in ascii, not in UTF-8.
>       The problem still exists even I change the app locale to "zh".
> 2.The following problems are both  in Tapestry-5.0.1 and Tapestry-5.0.2:
>       (1) When the content of HTML template has non english words, such as chinese, the page can't display the words correctly.
>        We can only see "?" in the page, but english content is ok.
>       (2) When the page class returns a chinese string directly, we can only see "?" in the page at runtime.
>             For example: 
>             In Start.html: ${hello}
>             In Start.java: public String getHello(){return "中国( some chinese words)!";}
>             The start page will display "??( some chinese words)!" at runtime.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Closed: (TAPESTRY-1294) Tapestry does not set an output encoding which prevents Unicode content from being output correctly

Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship closed TAPESTRY-1294.
------------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0.5

Let's see how well this works for you. We now determine the content type and the encoding based on meta data on the page (with a default of "text/html;charset=UTF-8").  For action links and form submissions, we set the request encoding based on the encoding of the page.  

What we're not doing:
- Setting the request encoding for page render requests (which may be necessary, but it's not always clear what to set the encoding to)
- Any extra support for reading templates or message catalogs in non-default character sets


> Tapestry does not set an output encoding which prevents Unicode content from being output correctly
> ---------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-1294
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1294
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0
>         Environment: Container: Tomcat 5.5.20 or jetty 6.1
> OS: Winxp Sp2
> Language: Simplified Chinese
>            Reporter: LinuxBoy
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.0.5
>
>         Attachments: codefiles.zip
>
>
> 1. The following problem is only in Tapestry-5.0.2:
>       I input chinese words into a form in Login page, and then turn to Start page. Start page can't display chinese. 
>       For example, I input chinese "中国" in Login page, and I just see "&#20013;&#22269;" in Start page. 
>       It looks like the data of form is encoded in ascii, not in UTF-8.
>       The problem still exists even I change the app locale to "zh".
> 2.The following problems are both  in Tapestry-5.0.1 and Tapestry-5.0.2:
>       (1) When the content of HTML template has non english words, such as chinese, the page can't display the words correctly.
>        We can only see "?" in the page, but english content is ok.
>       (2) When the page class returns a chinese string directly, we can only see "?" in the page at runtime.
>             For example: 
>             In Start.html: ${hello}
>             In Start.java: public String getHello(){return "中国( some chinese words)!";}
>             The start page will display "??( some chinese words)!" at runtime.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org