This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "UTF-8 encoding when building URL" Watch "UTF-8 encoding when building URL" New topic

UTF-8 encoding when building URL

Amund Frislie

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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: UTF-8 encoding when building URL
Similar Threads
Resultset order issue
Problem While storing Chinese Chars In db.
Problem in handling special characters using FOP generating pdf
Is the -Dfile.encoding server setting used for compliation of Java classes?
Struts2 variable inside javascript