sw/source/uibase/docvw/AnnotationWin.cxx |    1 +
 1 file changed, 1 insertion(+)

New commits:
commit d0bd11f45b75065185a6730b8f101aa5c5e441ea
Author:     Rashesh <rashesh.pa...@collabora.com>
AuthorDate: Wed Dec 11 15:40:11 2024 +0530
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Wed Dec 11 13:12:53 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/+/178300
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sw/source/uibase/docvw/AnnotationWin.cxx 
b/sw/source/uibase/docvw/AnnotationWin.cxx
index b8dc99c3b81a..ee6561fb01dd 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());
 }
 

Reply via email to