# HG changeset patch # User Alain Mazy # Date 1682352673 -7200 # Node ID bb07c12e3472e5c3aeb8dd9a9021bf449e3886f4 # Parent 56cd3444a2d823a320df17cc9d13e56a0c1b91d4 re-enabled the old NormalizeIdentifier code diff -r 56cd3444a2d8 -r bb07c12e3472 OrthancServer/Sources/ServerToolbox.cpp --- a/OrthancServer/Sources/ServerToolbox.cpp Mon Apr 24 18:04:07 2023 +0200 +++ b/OrthancServer/Sources/ServerToolbox.cpp Mon Apr 24 18:11:13 2023 +0200 @@ -243,14 +243,15 @@ { t.push_back(' '); // These characters might break wildcard queries in SQL } - else if (!iscntrl(value[i]) && + else if (isascii(value[i]) && + !iscntrl(value[i]) && (!isspace(value[i]) || value[i] == ' ')) { t.push_back(value[i]); } } - t = Toolbox::ToUpperCaseWithAccents(t); + t = Toolbox::ToUpperCase(t); #endif return Toolbox::StripSpaces(t);