summaryrefslogtreecommitdiff
path: root/docview/src/HelpTopic.pas
diff options
context:
space:
mode:
Diffstat (limited to 'docview/src/HelpTopic.pas')
-rw-r--r--docview/src/HelpTopic.pas7
1 files changed, 6 insertions, 1 deletions
diff --git a/docview/src/HelpTopic.pas b/docview/src/HelpTopic.pas
index a9b981f1..8b12b569 100644
--- a/docview/src/HelpTopic.pas
+++ b/docview/src/HelpTopic.pas
@@ -235,6 +235,8 @@ uses
,nvUtilities
,ACLStringUtility
,SettingsUnit
+ ,fpg_stringutils
+ ,HelpFile
;
const
@@ -2544,7 +2546,10 @@ begin
// normal lookup
if GlobalDictIndex < _GlobalDictionary.Count then
- StringToAdd := _GlobalDictionary[ GlobalDictIndex ]
+ begin
+ StringToAdd := _GlobalDictionary[ GlobalDictIndex ];
+ StringToAdd := ConvertTextToUTF8(THelpFile(HelpFile).Encoding, StringToAdd);
+ end
else
StringToAdd := '';