File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: UTF-8 encoding when building URL
 
Similar Threads
Struts2 variable inside javascript
Is the -Dfile.encoding server setting used for compliation of Java classes?
Resultset order issue
Problem While storing Chinese Chars In db.
Problem in handling special characters using FOP generating pdf