Thank you Nick!
and I set in the *.html file。
2007/4/16, Nick Westgate <[EMAIL PROTECTED]>:
> /*contributing a HttpServletRequestFilter */
...
> doesn't work!
> Maybe something wrong!
I didn't check to see why it doesn't work, but I've been
looking into this issue too - for displaying Japanes
> /*contributing a HttpServletRequestFilter */
...
> doesn't work!
> Maybe something wrong!
I didn't check to see why it doesn't work, but I've been
looking into this issue too - for displaying Japanese.
The HttpServletRequestFilter approach is not the best way
to go about this, because it handl
I wrote a *.properties using the UTF-8 encoding;
then i use the ${message:*} to display the chinese,
but i still couldn't write chinese in the *.html file, or got a wrong encoding.
so can I change t5 to read a *.html with a UTF-8 encoding???How?
在 07-4-14,xu yiwei<[EMAIL PROTECTED]> 写道:
in the
in the AppModule.java,my code:
/*
* utf-8 encoding
*
*/
public HttpServletRequestFilter buildEncodingFilter(final Log log){
return new HttpServletRequestFilter(){
public boolean service( HttpServletRequest request,
HttpS
I added a Filter, and it did succeed.
public void doFilter(ServletRequest arg0, ServletResponse arg1,
FilterChain arg2) throws IOException, ServletException {
// TODO Auto-generated method stub
arg1.setCharacterEncoding("UTF-8");
arg1.setContentType("text/html; cha
The question is the UTF-8 couldn't work!
putting a UTF-8 char in the Start.html will result in a exception.
the "Start.html" is ISO-8859-1 charset default, can I change that? and How?
2007/4/13, Kevin Lau <[EMAIL PROTECTED]>:
Well, your question now is not about whether the T5 support Chinese,
Well, your question now is not about whether the T5 support Chinese, it's
about how to use i18n. You don't even know why you put the "charset=GBK"
into the template or what's the difference between UTF-8 and GBK.
My suggestion is, forget about the Chinese first, use UTF8 to get the i18n
work, the
doesn't work right,
Exception message:
Failure parsing template context:WEB-INF/Start.html: The element type
"meta" must be terminated by the matching end-tag "".
so I put "" after the " "
Start.html include "The current time is: ${currentTime}.时间 "
时间 means time!
Exception message:
Failure pa
is for xml file, not for the html
file.
For the html file, you need to specify the charset by such staff
You really need to learn about the basic before purposeless test...
On 4/13/07, xu yiwei <[EMAIL PROTECTED]> wrote:
I wtite "" at the first line of
Start.html.
"现在时间是: ${currentTime}." s
I wtite "" at the first line of
Start.html.
"现在时间是: ${currentTime}." same as "The current time is:
${currentTime}. "
Something's wrong!
The exception message:
Failure parsing template context:WEB-INF/Start.html: Invalid byte 2 of
2-byte UTF-8 sequence.
"?: ${currentTime}."
It couldn't read "
T5 does not yet have the logic in place in T4 to allow the character
set to be configured before reading a .properties file or HTML
template. For the template, you should be able to set the charset
inside the tag.
The other aspect is output; T5 is hard coded to send, if I remember
correctly, UTF
*_zh.html could not display chinese!
Doesn't work!
2007/4/12, Kevin Lau <[EMAIL PROTECTED]>:
Use the localization.
http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html
On 4/12/07, xu yiwei <[EMAIL PROTECTED]> wrote:
>
> I am now trying to use T5 to develop a simple syste
I am now trying to use T5 to develop a simple system.
but it couldn't display the chinese.
This method did not work
configuration.add("tapestry.supported-locales", "zh");
and i could not find any way to display chinese,
will
-
Use the localization.
http://tapestry.apache.org/tapestry5/tapestry-core/guide/localization.html
On 4/12/07, xu yiwei <[EMAIL PROTECTED]> wrote:
I am now trying to use T5 to develop a simple system.
but it couldn't display the chinese.
This method did not work
configuration.add("tapestry.
I am now trying to use T5 to develop a simple system.
but it couldn't display the chinese.
This method did not work
configuration.add("tapestry.supported-locales", "zh");
i couldn't write non-ascll chars in the page(Start.html);
will
-
15 matches
Mail list logo