From e4f53484d255f844169957c411dc3e872af7d3bb Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Wed, 6 Apr 2022 13:22:26 +0300 Subject: tdf#148413: Drop HTML export encoding configuration; use UTF-8 Anything else is just a joke today. Change-Id: Ie6a0cec1edcd257cbadef702018e6a919e6a0b44 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132628 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- sd/source/filter/html/htmlex.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sd') diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx index 158a0b57d103..9ceffc8a515a 100644 --- a/sd/source/filter/html/htmlex.cxx +++ b/sd/source/filter/html/htmlex.cxx @@ -1065,7 +1065,7 @@ OUString HtmlExport::DocumentMetadata() const OUString aNonConvertableCharacters; SfxFrameHTMLWriter::Out_DocInfo(aStream, maDocFileName, xDocProps, - " ", RTL_TEXTENCODING_UTF8, + " ", &aNonConvertableCharacters); const sal_uInt64 nLen = aStream.GetSize(); @@ -2809,7 +2809,7 @@ OUString HtmlExport::CreateHTMLRectArea( const ::tools::Rectangle& rRect, OUString HtmlExport::StringToHTMLString( const OUString& rString ) { SvMemoryStream aMemStm; - HTMLOutFuncs::Out_String( aMemStm, rString, RTL_TEXTENCODING_UTF8 ); + HTMLOutFuncs::Out_String( aMemStm, rString ); aMemStm.WriteChar( char(0) ); sal_Int32 nLength = strlen(static_cast(aMemStm.GetData())); return OUString( static_cast(aMemStm.GetData()), nLength, RTL_TEXTENCODING_UTF8 ); -- cgit