Open Xyncgas opened 3 years ago
no I saw rfc3986, now do we have a method to escape these "reserved characters" in the library? other wise given any string which often is the case when you got a json file and read object's perma link which was created without escaping those characters which does happen because no current infrastructures or guidelines is general and adopted enough by the tools to stop people from doing this in the first place and that's likely never gonna happen, can you please make web::uri::validate to throw at least with some sort of message to point to a feature in library for people to use to encode these special characters ?
As per RFC 3986, paths cannot contain [
and ]
characters, which fall under gen-delims
not sub-delims
. They would need to be percent-encoded as %5B
and %5D
.
(Same answer as https://github.com/microsoft/cpprestsdk/issues/1272)
Use e.g. uri::encode_uri(path, uri::components::path)
.
https://dynasty-scans.com/system/releases/000/024/483/[Yuri_Ichigo]_Tadokoro-san_c32_02.png Chrome.