sc/source/ui/docshell/docsh.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 0fa5b4e03ed981cd79ac9af57e616714fc41b685 Author: Mike Kaganski <mike.kagan...@collabora.com> AuthorDate: Wed Aug 31 17:40:26 2022 +0300 Commit: Mike Kaganski <mike.kagan...@collabora.com> CommitDate: Wed Aug 31 23:13:31 2022 +0200 tdf#150714: [API-CHANGE] change CSV default encoding to UTF-8 Makes import and export use UTF-8 instead of Windows-1252 when executed from API without options. Change-Id: If04b119801c2509b48ca5d809f45d8437971d4b0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139122 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kagan...@collabora.com> diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 1ded35299ae1..c2795c70673b 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -1272,9 +1272,9 @@ bool ScDocShell::ConvertFrom( SfxMedium& rMedium ) if ( !bOptInit ) { // default for ascii import (from API without options): - // ISO8859-1/MS_1252 encoding, comma, double quotes + // UTF-8 encoding, comma, double quotes - aOptions.SetCharSet( RTL_TEXTENCODING_MS_1252 ); + aOptions.SetCharSet(RTL_TEXTENCODING_UTF8); aOptions.SetFieldSeps( OUString(',') ); aOptions.SetTextSep( '"' ); } @@ -2458,9 +2458,9 @@ bool ScDocShell::ConvertTo( SfxMedium &rMed ) if ( sItStr.isEmpty() ) { // default for ascii export (from API without options): - // ISO8859-1/MS_1252 encoding, comma, double quotes + // UTF-8 encoding, comma, double quotes - ScImportOptions aDefOptions( ',', '"', RTL_TEXTENCODING_MS_1252 ); + ScImportOptions aDefOptions(',', '"', RTL_TEXTENCODING_UTF8); sItStr = aDefOptions.BuildString(); }