The escape rules vary in small maddening ways and trying to figure out if your implementation is doing the right thing from specs will make you give up forum moderating and join the merchant marine, in the best case.
Fortunately, that's the sort of thing Google can afford so it's safest to just check what their RFC-compliant utility libraries do:
Fortunately, that's the sort of thing Google can afford so it's safest to just check what their RFC-compliant utility libraries do:
https://guava.dev/releases/28.0-jre/api/docs/com/google/comm...
The apostrophe is not escaped in URI path segments.