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 ]