Mercurial > hg > orthanc-education
changeset 60:83b1a9fd6baf
note
| author | Sebastien Jodogne <s.jodogne@gmail.com> |
|---|---|
| date | Fri, 07 Nov 2025 07:44:56 +0100 |
| parents | 6196eaebf901 |
| children | cee3ec6f68fb |
| files | Sources/OrthancDatabase.cpp |
| diffstat | 1 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Sources/OrthancDatabase.cpp Thu Nov 06 15:53:19 2025 +0100 +++ b/Sources/OrthancDatabase.cpp Fri Nov 07 07:44:56 2025 +0100 @@ -443,6 +443,16 @@ } else { + /** + * The following implementation is correct if title is an UTF-8 + * string: "When a new URI scheme defines a component that + * represents textual data consisting of characters from the + * Universal Character Set [UCS], the data should first be encoded + * as octets according to the UTF-8 character encoding [STD63]; + * then only those octets that do not correspond to characters in + * the unreserved set should be percent- encoded." + * https://www.rfc-editor.org/rfc/rfc3986 + **/ std::string tmp; Orthanc::Toolbox::UriEncode(tmp, title); return "&description=" + tmp;
