You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Shapira, Yoav" <Yo...@mpi.com> on 2004/06/10 16:33:31 UTC

UTF8 or sys prop value?

Hi,
I see in StandardServer#storeConfig and MemoryUserDatabase#save that
we're creating the output writers for server.xml and tomcat-users.xml
using a hard-coded "UTF8" encoding.

Should we modify this?  Maybe look for the specified java.file.encoding
system property, and if that's specified, use it, otherwise use UTF* as
default?

The reason I'm asking is for
http://issues.apache.org/bugzilla/show_bug.cgi?id=29091.

Yoav Shapira
Millennium Research Informatics





This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.


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


Re: UTF8 or sys prop value?

Posted by Peter Rossbach <pr...@objektpark.de>.
Helo Yoav,

I think we must change it, as system property and a encoding Server 
attribute.
I have start a implementation to a flexible new store engine for the 
tomcat 5 format.
At weekend I wrote the proposal and I start the coding.

Features:
Seperate MBean to store the configuration.
Flexible management to extensions, like cluster configuration
store at Stream, Writer or File
store complete Server, Service, Host or Context
Flexible Handling from transient Attributes and Childs

regards
Peter

Shapira, Yoav schrieb:

>Hi,
>I see in StandardServer#storeConfig and MemoryUserDatabase#save that
>we're creating the output writers for server.xml and tomcat-users.xml
>using a hard-coded "UTF8" encoding.
>
>Should we modify this?  Maybe look for the specified java.file.encoding
>system property, and if that's specified, use it, otherwise use UTF* as
>default?
>
>The reason I'm asking is for
>http://issues.apache.org/bugzilla/show_bug.cgi?id=29091.
>
>Yoav Shapira
>Millennium Research Informatics
>
>
>
>
>
>This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
>
>
>
>  
>


-- 
J2EE Systemarchitekt und Tomcat Experte

http://objektpark.de/
http://www.webapp.de/

Am Josephsschacht 72, 44879 Bochum, Deutschland
Telefon:  (49) 234 9413228
Mobil:    (49) 175 1660884
E-Mail:  pr@objektpark.de




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


Re: UTF8 or sys prop value?

Posted by jean-frederic clere <jf...@fujitsu-siemens.com>.
Shapira, Yoav wrote:
> Hi,
> I see in StandardServer#storeConfig and MemoryUserDatabase#save that
> we're creating the output writers for server.xml and tomcat-users.xml
> using a hard-coded "UTF8" encoding.

Forcing "UTF8" is not very lucky...It brings me problem with EBCDIC machines and 
tomcat-users.xml, but how to get the encoding of the tomcat-users.xml? (If the 
.xml file contains an encoding we should save it with this encoding and not with 
the system default "java.file.encoding").

> 
> Should we modify this?  Maybe look for the specified java.file.encoding
> system property, and if that's specified, use it, otherwise use UTF* as
> default?
> 
> The reason I'm asking is for
> http://issues.apache.org/bugzilla/show_bug.cgi?id=29091.
> 
> Yoav Shapira
> Millennium Research Informatics
> 
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
> 
> 
> 


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