Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

xml escaping characters for database password

Adam Hardy

2003-12-17

Replies:

Hi,
I'm using mysql via JDBC and I need to encode a password with
non-alphabet characters in it like % in my server.xml.

Do I use a URL encoding for this or an XML encoding?

Also while I'm on the subject, do I have to encode or escape a
double-quote in an xml attribute:

<mynode attr1="blahblah\"blah\"blah"/>

or is there some other encoding I should use?

Thanks
Adam
--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.