From 69df3928f374f4c331b5208a7cdb282f05cba87d Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 25 Jul 2012 16:25:55 +0200 Subject: escape output properly inside RTF_MR Change-Id: I93ea57e6bd5f93c9a5d256a11f91ec260f96c223 --- starmath/source/rtfexport.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'starmath') diff --git a/starmath/source/rtfexport.cxx b/starmath/source/rtfexport.cxx index 32c1cc5f890c..dbce7ed43148 100644 --- a/starmath/source/rtfexport.cxx +++ b/starmath/source/rtfexport.cxx @@ -130,8 +130,8 @@ void SmRtfExport::HandleText(const SmNode* pNode, int /*nLevel*/) for (xub_StrLen i = 0; i < pTemp->GetText().Len(); i++) { sal_uInt16 nChar = pTemp->GetText().GetChar(i); - // TODO special/non-ascii chars? - m_pBuffer->append(OUStringToOString(OUString(SmTextNode::ConvertSymbolToUnicode(nChar)), RTL_TEXTENCODING_UTF8)); + OUString aValue(SmTextNode::ConvertSymbolToUnicode(nChar)); + m_pBuffer->append(msfilter::rtfutil::OutString(aValue, RTL_TEXTENCODING_MS_1252)); } m_pBuffer->append("}"); -- cgit