Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

HP OpenVMS Systems

ask the wizard
Content starts here

Java 1.4.2 URLEncode Encoding?

» close window

The Question is:

 
While using Java through Tomcat 4.1 and SDK 1.4.2, I am trying to encode a
 string using the URLEncoder class.  When I use this method on the Alpha
 machine it is appending random "^" symbols in the string.  This only happens
 on OpenVMS and not a PC environ
ment of the same code.
 
Example:
 
String myString = "hello$how are you$123";
String myEncodedString = URLEncoder.encode(myString,"UTF-8")
System.out.println(myEncodedString);
 
 
output:
"hello$how^+are^+you$123";
 
This should be:
 
"hello$how+are+you$123";
 
Why does this behavior occur?


The Answer is :

 
  Please contact the support center, as attempts to reproduce this
  have failed -- information on the current configuration and the
  run-time environment, associated product versions and ECOs, and
  the full JSP will likely be required.
 

answer written or last revised on ( 3-OCT-2004 )

» close window

 

** About PDF files: The PDF files on this Web site can be read online or printed using Adobe® Acrobat® Reader. If you do not have this software installed on your system, you may download it from Adobe's Web site
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.