You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by 滕训华 <te...@magic-sw.com.cn> on 2008/06/25 02:44:04 UTC

Chinese can not display correctly

I use the ${message:labelKey} in the tml and define the labelKey in the
properties with Chinese characters,but when the page display ,the Chinese
can not display correctly. 

 

By the way,my properties file is define with UTF-8


Re: 答复: Chinese can not display correctly

Posted by Donyee <xy...@gmail.com>.
There is a eclipse plugin,
propedit<http://propedit.sourceforge.jp/eclipse/updates>
It can eidt the prop file!
Enjoy it!

2008/6/25 Korben Zhang <ko...@gmail.com>:

> Is there any ways  doesn't need native2ascii?
>
> 2008/6/25 滕训华 <te...@magic-sw.com.cn>:
>
> > Yes,chinese display correctly after compile by native tool,thanks very
> much
> >
> > -----邮件原件-----
> > 发件人: dhning [mailto:ningdhcn@gmail.com]
> > 发送时间: 2008年6月25日 14:38
> > 收件人: Tapestry users
> > 主题: Re: Chinese can not display correctly
> >
> > Hi,
> >  You should first utilize native2ascii(in jdk/bin) to convert the
> > appname_zh_CN.properties to asc, then it should solve your probelem.
> >  I don't know why T5 deal with internationalization differently from T4.
> In
> > T4, we developer don't have to convert the resource files, we just need
> > input Chinese and it displays correctly.
> >
> >  And if your IDE is eclipse, you can find some plugin to help you convert
> > encoding automatically.
> >
> > Thanks!
> >
> > DH
> >
> >
> > ----- Original Message -----
> > From: "滕训华" <te...@magic-sw.com.cn>
> > To: "'Tapestry users'" <us...@tapestry.apache.org>
> > Sent: Wednesday, June 25, 2008 8:44 AM
> > Subject: Chinese can not display correctly
> >
> >
> > >I use the ${message:labelKey} in the tml and define the labelKey in the
> > > properties with Chinese characters,but when the page display ,the
> Chinese
> > > can not display correctly.
> > >
> > >
> > >
> > > By the way,my properties file is define with UTF-8
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Korben Zhang
> Blog: http://korben-zhang.blogspot.com | http://korbenzh.spaces.live.com
>



-- 
Yet Another Java EE Developer!

Re: 答复: Chinese can not display correctly

Posted by Korben Zhang <ko...@gmail.com>.
Is there any ways  doesn't need native2ascii?

2008/6/25 滕训华 <te...@magic-sw.com.cn>:

> Yes,chinese display correctly after compile by native tool,thanks very much
>
> -----邮件原件-----
> 发件人: dhning [mailto:ningdhcn@gmail.com]
> 发送时间: 2008年6月25日 14:38
> 收件人: Tapestry users
> 主题: Re: Chinese can not display correctly
>
> Hi,
>  You should first utilize native2ascii(in jdk/bin) to convert the
> appname_zh_CN.properties to asc, then it should solve your probelem.
>  I don't know why T5 deal with internationalization differently from T4. In
> T4, we developer don't have to convert the resource files, we just need
> input Chinese and it displays correctly.
>
>  And if your IDE is eclipse, you can find some plugin to help you convert
> encoding automatically.
>
> Thanks!
>
> DH
>
>
> ----- Original Message -----
> From: "滕训华" <te...@magic-sw.com.cn>
> To: "'Tapestry users'" <us...@tapestry.apache.org>
> Sent: Wednesday, June 25, 2008 8:44 AM
> Subject: Chinese can not display correctly
>
>
> >I use the ${message:labelKey} in the tml and define the labelKey in the
> > properties with Chinese characters,but when the page display ,the Chinese
> > can not display correctly.
> >
> >
> >
> > By the way,my properties file is define with UTF-8
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Korben Zhang
Blog: http://korben-zhang.blogspot.com | http://korbenzh.spaces.live.com

答复: Chinese can not display correctly

Posted by 滕训华 <te...@magic-sw.com.cn>.
Yes,chinese display correctly after compile by native tool,thanks very much

-----邮件原件-----
发件人: dhning [mailto:ningdhcn@gmail.com] 
发送时间: 2008年6月25日 14:38
收件人: Tapestry users
主题: Re: Chinese can not display correctly

Hi,
  You should first utilize native2ascii(in jdk/bin) to convert the
appname_zh_CN.properties to asc, then it should solve your probelem.
  I don't know why T5 deal with internationalization differently from T4. In
T4, we developer don't have to convert the resource files, we just need
input Chinese and it displays correctly.
  
  And if your IDE is eclipse, you can find some plugin to help you convert
encoding automatically.

Thanks!

DH


----- Original Message ----- 
From: "滕训华" <te...@magic-sw.com.cn>
To: "'Tapestry users'" <us...@tapestry.apache.org>
Sent: Wednesday, June 25, 2008 8:44 AM
Subject: Chinese can not display correctly


>I use the ${message:labelKey} in the tml and define the labelKey in the
> properties with Chinese characters,but when the page display ,the Chinese
> can not display correctly. 
> 
> 
> 
> By the way,my properties file is define with UTF-8
> 
>


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


Re: Chinese can not display correctly

Posted by dhning <ni...@gmail.com>.
Hi,
  You should first utilize native2ascii(in jdk/bin) to convert the appname_zh_CN.properties to asc, then it should solve your probelem.
  I don't know why T5 deal with internationalization differently from T4. In T4, we developer don't have to convert the resource files, we just need input Chinese and it displays correctly.
  
  And if your IDE is eclipse, you can find some plugin to help you convert encoding automatically.

Thanks!

DH


----- Original Message ----- 
From: "滕训华" <te...@magic-sw.com.cn>
To: "'Tapestry users'" <us...@tapestry.apache.org>
Sent: Wednesday, June 25, 2008 8:44 AM
Subject: Chinese can not display correctly


>I use the ${message:labelKey} in the tml and define the labelKey in the
> properties with Chinese characters,but when the page display ,the Chinese
> can not display correctly. 
> 
> 
> 
> By the way,my properties file is define with UTF-8
> 
>