Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: markspace Newsgroups: comp.lang.java.programmer Subject: Re: [LONG] java.net.URI encoding weirdness Date: Mon, 05 May 2014 11:58:29 -0700 Organization: A noiseless patient Spider Lines: 9 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 5 May 2014 18:58:32 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="9358cda03e1e0dfd3c4b757daa608707"; logging-data="18799"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19u7KmwIg7pzM9zPVk+iKgjJw81K3zCQRs=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 In-Reply-To: Cancel-Lock: sha1:Tu8+IpzhRYU+9ZKKVsSqnLfKrKg= Xref: csiph.com comp.lang.java.programmer:28382 On 5/5/2014 6:11 AM, Stanimir Stamenkov wrote: > I think all this mess is caused by the URI constructors blindly encoding > special URI characters in given 'path', 'query' etc. without considering > the context, and you probably shouldn't be using the java.net.URI > constructors for any serious work. *cough* java.net.UrlDecoder.