diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2013-04-25 17:06:03 +0100 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2013-04-25 17:06:03 +0100 |
commit | 936ecd78019c96d63cd93ab94a7420e146d14930 (patch) | |
tree | 74c1a8b0616dc1f33022d5c07107818fa6207123 /docview | |
parent | d35125d429f04dd16837ae7a798a9fbf1cc4c62e (diff) | |
download | fpGUI-936ecd78019c96d63cd93ab94a7420e146d14930.tar.xz |
docview: Saving topics to IPF now save text as UTF-8 encoded text.
Lets promote Unicode (UTF-8) usage as much as possible. It's much easier
than he stacks of other "old style" encodings.
Diffstat (limited to 'docview')
-rw-r--r-- | docview/src/HelpTopic.pas | 7 |
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 := ''; |