diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-07-25 16:25:55 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-07-25 17:07:36 +0200 |
commit | 69df3928f374f4c331b5208a7cdb282f05cba87d (patch) | |
tree | 0a31dca8dac24dbfde536b12be5d8db42abe9a38 /starmath | |
parent | 8556a1cdebe7de52e0d88755f24c00f5a83da314 (diff) |
escape output properly inside RTF_MR
Change-Id: I93ea57e6bd5f93c9a5d256a11f91ec260f96c223
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/rtfexport.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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("}"); |