2 ms·
Apache commons codec has a base 64 encoder that has a url friendly mode where it substitutes those characters. I've used that a few times to work around issues
by jillesvangurp 6y ago
Apache commons codec has a base 64 encoder that has a url friendly mode where it substitutes those characters. I've used that a few times to work around issues like this.
- brabel 6y agoURL-safe base64 is part of the spec: https://tools.ietf.org/html/rfc4648#section-5 https://tools.ietf.org/html/rfc4648#section-5 If you're using Java, it's right in the standard library: `Base64.getUrlEncoder().withoutPadding().encode(value)`