diff --git a/helpcompiler/source/HelpLinker.cxx b/helpcompiler/source/HelpLinker.cxx index b06295fdf22c..285241ae18c4 100644 --- a/helpcompiler/source/HelpLinker.cxx +++ b/helpcompiler/source/HelpLinker.cxx @@ -212,9 +212,11 @@ namespace URLEncoder std::string result; for (char c : rIn) { - if (isalnum (c) || strchr (good, c)) + if (rtl::isAsciiAlphanumeric (static_cast(c)) + || strchr (good, c)) + { result += c; - else { + } else { result += '%'; result += hex[static_cast(c) >> 4]; result += hex[c & 0xf];