sw/source/uibase/docvw/AnnotationWin.cxx | 1 + 1 file changed, 1 insertion(+)
New commits: commit a551c0eb433075b4970a54f1778af328fe2b9b9d Author: Rashesh <[email protected]> AuthorDate: Wed Dec 11 15:40:11 2024 +0530 Commit: Andras Timar <[email protected]> CommitDate: Thu Dec 12 15:44:01 2024 +0100 sw: lokit: make sure to read annotation html with utf-8 - its online specific patch where the we pass html for annotation - to test: 1. Open document in online 2. Use "pt" keyboard to type comment "légend" and save 3. Before: légend; After: légend Change-Id: Ibd32fbd70c780938e8036362313067e8c1bc8f61 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178296 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Caolán McNamara <[email protected]> (cherry picked from commit 676d31297652f4a8c72a31b0d5e1a97a448a7d65) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178363 Tested-by: Andras Timar <[email protected]> Reviewed-by: Andras Timar <[email protected]> diff --git a/sw/source/uibase/docvw/AnnotationWin.cxx b/sw/source/uibase/docvw/AnnotationWin.cxx index 0f23e3c7f396..9aa505850f6c 100644 --- a/sw/source/uibase/docvw/AnnotationWin.cxx +++ b/sw/source/uibase/docvw/AnnotationWin.cxx @@ -97,6 +97,7 @@ void ImportHTML(Outliner& rOutliner, const OUString& rHtml) // Insert newlines for divs, not normally done, so to keep things simple // only enable that for this case. xValues->Append(SvKeyValue("newline-on-div", "true")); + xValues->Append(SvKeyValue("content-type", "text/html;charset=utf-8")); rOutliner.Read(aHTMLStream, "", EETextFormat::Html, xValues.get()); }
