You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by sun58224 <su...@sina.com> on 2007/07/14 03:01:54 UTC

properties file does not support UTF8

1.properties file does not support UTF8.
2.Sort BeanForms can not be changed.


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


Re: properties file does not support UTF8

Posted by Renat Zubairov <re...@gmail.com>.
Ok, I can only say that it works for properties in JVM 1.5

Proper way offcourse is to use native2ascii

On 15/07/07, Michael Grundvig <mi...@electrotank.com> wrote:
> The -Dfile.encoding option doesn't always work properly, it's documented on
> the Java site here:
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4163515
>
> Basically, it seems to work on some VMs but you really need to just make
> sure the file matches the encoding of the OS or specify an encoding on the
> stream directly. This is why pretty much everything lets you pass in an
> encoding when dealing with bytes.
>
> Mike
>
>
> ----- Original Message -----
> From: "Renat Zubairov" <re...@gmail.com>
> To: "Tapestry users" <us...@tapestry.apache.org>
> Sent: Sunday, July 15, 2007 10:09 AM
> Subject: Re: properties file does not support UTF8
>
>
> > Properties files do support UTF-8, you just need to encode them proper
> >
> > See
> >
> > native2ascii util from JDK or set your default Java file encoding to
> > UTF-8 using "-Dfile.encoding=utf8"
> >
> > Renat
> >
> > On 14/07/07, sun58224 <su...@sina.com> wrote:
> >> 1.properties file does not support UTF8.
> >> 2.Sort BeanForms can not be changed.
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >
> >
> > --
> > Best regards,
> > Renat Zubairov
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Best regards,
Renat Zubairov

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


Re: properties file does not support UTF8

Posted by Michael Grundvig <mi...@electrotank.com>.
The -Dfile.encoding option doesn't always work properly, it's documented on 
the Java site here:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4163515

Basically, it seems to work on some VMs but you really need to just make 
sure the file matches the encoding of the OS or specify an encoding on the 
stream directly. This is why pretty much everything lets you pass in an 
encoding when dealing with bytes.

Mike


----- Original Message ----- 
From: "Renat Zubairov" <re...@gmail.com>
To: "Tapestry users" <us...@tapestry.apache.org>
Sent: Sunday, July 15, 2007 10:09 AM
Subject: Re: properties file does not support UTF8


> Properties files do support UTF-8, you just need to encode them proper
>
> See
>
> native2ascii util from JDK or set your default Java file encoding to
> UTF-8 using "-Dfile.encoding=utf8"
>
> Renat
>
> On 14/07/07, sun58224 <su...@sina.com> wrote:
>> 1.properties file does not support UTF8.
>> 2.Sort BeanForms can not be changed.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
> -- 
> Best regards,
> Renat Zubairov
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 


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


Re: properties file does not support UTF8

Posted by Renat Zubairov <re...@gmail.com>.
Properties files do support UTF-8, you just need to encode them proper

See

native2ascii util from JDK or set your default Java file encoding to
UTF-8 using "-Dfile.encoding=utf8"

Renat

On 14/07/07, sun58224 <su...@sina.com> wrote:
> 1.properties file does not support UTF8.
> 2.Sort BeanForms can not be changed.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Best regards,
Renat Zubairov

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


Re: properties file does not support UTF8

Posted by sun58224 <su...@sina.com>.
sun58224 <sun58224 <at> sina.com> writes:
JAVA enumeration type Chinese constants can not compile






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


Re: properties file does not support UTF8

Posted by sun58224 <su...@sina.com>.

Donyee:
Thank you!



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


Re: properties file does not support UTF8

Posted by Donyee <xy...@gmail.com>.
你要是用Eclipse的话,最好安装个属性文件插件,因为Eclipse本身的好像不好用
http://propedit.sourceforge.jp/eclipse/updates/

You'd better install a plugin for eclipse if you're using it.
http://propedit.sourceforge.jp/eclipse/updates/

2007/7/14, sun58224 <su...@sina.com>:
> 1.properties file does not support UTF8.
> 2.Sort BeanForms can not be changed.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
----徐 依伟