Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #35896
| Path | csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Daniele Futtorovic <da.futt.news@laposte.net> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: java.net.URLEncoder.encode + UTF-8 (rant) |
| Date | Mon, 14 Nov 2016 20:05:59 +0100 |
| Organization | A noiseless patient Spider |
| Lines | 17 |
| Message-ID | <o0d1tp$sft$1@dont-email.me> (permalink) |
| References | <slrno09hi9.456.avl@login.logic.tuwien.ac.at> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Mon, 14 Nov 2016 19:05:29 -0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="9c59bd208e091be8a86efe80203a618e"; logging-data="29181"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/FEOjxwWITCju7mRDK+sd7" |
| User-Agent | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 |
| In-Reply-To | <slrno09hi9.456.avl@login.logic.tuwien.ac.at> |
| Cancel-Lock | sha1:F3eOLKJujq8IaJBkELL1embuDGo= |
| Xref | csiph.com comp.lang.java.programmer:35896 |
Show key headers only | View raw
On 2016-10-17 14:38, Andreas Leitgeb wrote:
> <rant target="java.net.URLEncoder.encode(String s, String enc)">
>
> This method should (according to the w3c) only be used with UTF-8
> and UTF-8 is always supposed to be supported by Java.
>
> Why is there no java.net.URLEncoder.encodeUTF8(String s) that
> would free me from that boring
> try {...} catch (UnsupportedEncodingException ign) {...}
> boilerplate? (What code do good(tm) Java programmers even put
> into this catch clause, that is expected to never run, anyway?)
throw new AssertionError( ing.toString() );
But yeah, it's annoying.
df.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
java.net.URLEncoder.encode + UTF-8 (rant) Andreas Leitgeb <avl@logic.at> - 2016-10-17 12:38 +0000
Re: java.net.URLEncoder.encode + UTF-8 (rant) j4n bur53 <janburse@fastmail.fm> - 2016-10-17 16:55 +0200
Re: java.net.URLEncoder.encode + UTF-8 (rant) Arne Vajhøj <arne@vajhoej.dk> - 2016-10-19 21:35 -0400
Re: java.net.URLEncoder.encode + UTF-8 (rant) Daniele Futtorovic <da.futt.news@laposte.net> - 2016-11-14 20:05 +0100
Re: java.net.URLEncoder.encode + UTF-8 (rant) Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-11-14 14:45 -0500
csiph-web