summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorAndreas Heinisch <andreas.heinisch@yahoo.de>2021-06-11 21:40:35 +0200
committerAndreas Heinisch <andreas.heinisch@yahoo.de>2021-06-18 12:10:17 +0200
commitd50501d1b4c015232c31c75a16b96143d43f7a3f (patch)
treedc75a9721c82dc86d62629d6a806c97ae5087ca7 /oox
parent04cd6749177f886f382e8bcd026f95112ee22473 (diff)
tdf#127864 - Export custom document properties using utf8 text encoding
Change-Id: Iaca1f9251e87ec199b55888c1ab6421a654d1f9f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117071 Tested-by: Jenkins Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Diffstat (limited to 'oox')
-rw-r--r--oox/source/core/xmlfilterbase.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx
index a8532d206d31..307949ae4076 100644
--- a/oox/source/core/xmlfilterbase.cxx
+++ b/oox/source/core/xmlfilterbase.cxx
@@ -858,7 +858,8 @@ writeCustomProperties( XmlFilterBase& rSelf, const Reference< XDocumentPropertie
{
if ( !rProp.Name.isEmpty() )
{
- OString aName = OUStringToOString( rProp.Name, RTL_TEXTENCODING_ASCII_US );
+ // tdf#127864 - export custom document properties using utf8 text encoding
+ OString aName = OUStringToOString(rProp.Name, RTL_TEXTENCODING_UTF8);
// Skip storing these values in Custom Properties as it will be stored in Core/Extended Properties
if (( aName == "OOXMLCorePropertyCategory" ) || // stored in cp:category
( aName == "OOXMLCorePropertyContentStatus" ) || // stored in cp:contentStatus