Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4669023y๐คจ
What part of this is not encoding the string for url usage?
Utility class for HTML form encoding. This class contains static methods for converting a String to the
> application/x-www-form-urlencoded
MIME format
https://docs.oracle.com/en/java/... -
C0D4669023y@epse fix the endpoint to receive +'s ๐คทโ๏ธ
But then again, it's a urlencoder not a uri encoder ๐ -
@epse
https://docs.oracle.com/javase/8/...
You'll need URI - see section "Escaped octets, quotation, encoding, and decoding " -
@epse honestly it's hard to find a library that does everything right.. Oracle JDK documentation is a nightmare and the standard library sometimes has it's ways of giving severe brain damage, without a doubt… but from my experience there is no perfectness regarding URL -/ URI handling, parsing and encoding in any language.
Might have something to do with URIs being standardized, but many loopholes exist.
Caching middleware taught me a lot about it... -
epse36583y@IntrusionCM spring comes with a good library for URI encoding and has relatively decent community docs, but in general I agree with you. Of all languages we use at work, I dread java the most. At least it has Jena, that's very powerful in its field
Related Rants
Why in the everliving freaking fuck does Java have a class called URLEncoder which DOES NOT DO URL ENCODING??? The shit-spraying piece of a mouldy footgun does formencoding?? Which sadistic maniac thought that was a good idea?
rant
urlencoding
java