diff options
author | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2021-06-11 21:40:35 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-06-18 16:26:57 +0200 |
commit | ac9827844564f86bc36a1f7492f3d8781ab8779c (patch) | |
tree | d521e5fa169dc5a222e8c760497f55a684173fd1 /oox | |
parent | 4895e825b9fb40c2df272f910a9fe14e545a7c99 (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>
(cherry picked from commit d50501d1b4c015232c31c75a16b96143d43f7a3f)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117416
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/core/xmlfilterbase.cxx | 3 |
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 |