• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

URL Encoder

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

I have two versions of servers installed on my machine , URL Encoder is working in one version and in other it is not working.

I am using the following snippet in my code:

URLEncoder.encode(QIPExportProgram.toString(), "UTF-8")

Here "QIPExportProgram" is a URL


Version1 Working Version:

JDK1.4
Tomcat 5.0.28
Vignette : 7.2

Version 2:

JDK1.5.15
Tomcat 6.0
Vignette : 7.4.1
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello "sasank ch"-

You may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name and a full last name. Since yours does not conform with it, please take a moment to change it, which you can do right here.

As to your question, what does "it is not working" mean? What are the results of both calls?

Does the URL actually need encoding in UTF-8? The overwhelming majority of URLs is in pure ASCII.
[ October 03, 2008: Message edited by: Ulf Dittmer ]
 
I'm full of tinier men! And a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic