# HG changeset patch # User Sebastien Jodogne # Date 1762497896 -3600 # Node ID 83b1a9fd6baf3432c6aa0083f59b6111cd977fa7 # Parent 6196eaebf901b30b6cf3d9455d58c84f16e6560c note diff -r 6196eaebf901 -r 83b1a9fd6baf Sources/OrthancDatabase.cpp --- 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;