diff options
Diffstat (limited to 'plugins/NewStory/src/history_array.cpp')
| -rw-r--r-- | plugins/NewStory/src/history_array.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index 56f70ee37c..5c4fd60c10 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -477,7 +477,9 @@ void ItemData::setText(const wchar_t *pwszText) pOwner->webPage.clText = g_fontTable[fontid].cl;
pOwner->webPage.clBack = g_colorTable[colorid].cl;
- m_doc = litehtml::document::createFromString(T2Utf(formatHtml(pwszText)), &pOwner->webPage);
+
+ litehtml::estring body(T2Utf(formatHtml(pwszText)).get(), litehtml::encoding::utf_8);
+ m_doc = litehtml::document::createFromString(body, &pOwner->webPage);
}
// Array
|
