Problem/Motivation

Need to add opportunity to use Western Europe ISO-8859-15 encoding for export data. Also with this need to fix utf-8 encoding name.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nabiyllin created an issue. See original summary.

r.nabiullin’s picture

Status: Active » Needs review
FileSize
1.96 KB

Integration with csv_serialization was added in this issue.

andypost’s picture

+++ b/src/Plugin/views/style/DataExport.php
@@ -35,7 +35,7 @@ class DataExport extends Serializer {
-      'encoding' => ['default' => 'utf8'],
+      'encoding' => ['default' => 'utf-8'],

@@ -128,7 +128,8 @@ class DataExport extends Serializer {
-              'utf8' => $this->t('UTF-8'),
+              'utf-8' => $this->t('UTF-8'),

Why you adding `-`? that breaks existing config

r.nabiullin’s picture

utf-8 it's a correct name. This option (encoding) was ported from D7 and on current version this option was without powerful and absolutely never been used. But for new csv serialization need to update this option.

YurkinPark’s picture

FileSize
2.08 KB

Re-roll

andypost’s picture

Status: Needs review » Reviewed & tested by the community

I still feel this needs split into upgrade of s/utf8/utf-8 and new encoding

jhedstrom’s picture

Status: Reviewed & tested by the community » Needs review

Shouldn't there be an update hook here to change the option for existing sites as noted in #6?

andypost’s picture

FileSize
1.15 KB
3.15 KB

Here's upgrade tests

andypost’s picture

FileSize
580 bytes
3.15 KB

Fix name

apaderno’s picture

Issue tags: -csv_serialization
lmotisi’s picture

I updated #9 to add UTF-16LE and UTF-16BE option, and I also created a patch for csv_serialization