diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/util.cpp b/src/util.cpp index 5e0a4c6..ef1e709 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -5337,17 +5337,8 @@ QCString latexFilterURL(const char *s) default: if (c<0) { - char ids[5]; - int charLen = getUtf8Char(p-1,ids); - if (charLen>0) - { - t << ids; - p+=charLen-1; - } - else - { - // skip invalid character - } + unsigned char id = (unsigned char)c; + t << "\\%" << hex[id>>4] << hex[id&0xF]; } else { |