aspose file tools*
The moose likes Servlets and the fly likes UTF-8 encoding when building URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "UTF-8 encoding when building URL" Watch "UTF-8 encoding when building URL" New topic
Author

UTF-8 encoding when building URL

Amund Frislie
Greenhorn

Joined: Jan 25, 2002
Posts: 17
(Hope this is the correct address for this question).
I'm collecting parameters from a form (using Struts on Tomcat) to build a URL. The problem appears when special chars like '�', '�', '�', etc. are sent with the URL. I use DOMParser's parse method to retrieve an XML document from a server (connecting using the mentioned URL). Does anyone have a nice solution to this (apart from scanning the whole URL string and replace special chars)?
Thank you.
Amund
 
jQuery in Action, 2nd edition
 
subject: UTF-8 encoding when building URL
 
Similar Threads
Problem While storing Chinese Chars In db.
Is the -Dfile.encoding server setting used for compliation of Java classes?
Problem in handling special characters using FOP generating pdf
Resultset order issue
Struts2 variable inside javascript