From 440384fa2d210f9be742f45f46737ca0abf3c506 Mon Sep 17 00:00:00 2001 From: corinaolariu Date: Fri, 22 Nov 2024 11:52:11 +0200 Subject: [PATCH] RED-10443 - 500 Error occurs when selecting ISO-8859-1 as Encoding Type for any CSV File Format - update - bp - update also the key ISO encoding to ISO-8859-1 --- .../translations/file-attribute-encoding-types-translations.ts | 2 +- .../red-domain/src/lib/file-attributes/file-attribute-config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/red-ui/src/app/translations/file-attribute-encoding-types-translations.ts b/apps/red-ui/src/app/translations/file-attribute-encoding-types-translations.ts index d3f53ecd6..e2d7efa53 100644 --- a/apps/red-ui/src/app/translations/file-attribute-encoding-types-translations.ts +++ b/apps/red-ui/src/app/translations/file-attribute-encoding-types-translations.ts @@ -4,5 +4,5 @@ import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'; export const fileAttributeEncodingTypesTranslations: { [key in FileAttributeEncodingType]: string } = { 'UTF-8': _('file-attribute-encoding-types.utf8'), ASCII: _('file-attribute-encoding-types.ascii'), - ISO: _('file-attribute-encoding-types.iso'), + 'ISO-8859-1': _('file-attribute-encoding-types.iso'), }; diff --git a/libs/red-domain/src/lib/file-attributes/file-attribute-config.ts b/libs/red-domain/src/lib/file-attributes/file-attribute-config.ts index 897cea138..50dbfce99 100644 --- a/libs/red-domain/src/lib/file-attributes/file-attribute-config.ts +++ b/libs/red-domain/src/lib/file-attributes/file-attribute-config.ts @@ -21,6 +21,6 @@ export type FileAttributeConfigType = keyof typeof FileAttributeConfigTypes; export const FileAttributeEncodingTypes = { 'UTF-8': 'UTF-8', ASCII: 'ASCII', - ISO: 'ISO-8859-1', + 'ISO-8859-1': 'ISO-8859-1', } as const; export type FileAttributeEncodingType = keyof typeof FileAttributeEncodingTypes;