Trying to put emojis in the reana-ui announcement results in the following error:
File "/code/./reana_server/rest/config.py", line 75, in get_config
jsonify(REANAConfig.load("ui")),
File "/usr/local/lib/python3.8/dist-packages/reana_commons/config.py", line 40, in load
return cls._read_file(cls.config_mapping[kind])
File "/usr/local/lib/python3.8/dist-packages/reana_commons/config.py", line 30, in _read_file
data = yaml.load(yaml_file, Loader=yaml.FullLoader)
File "/usr/local/lib/python3.8/dist-packages/yaml/__init__.py", line 79, in load
loader = Loader(stream)
File "/usr/local/lib/python3.8/dist-packages/yaml/loader.py", line 24, in __init__
Reader.__init__(self, stream)
File "/usr/local/lib/python3.8/dist-packages/yaml/reader.py", line 85, in __init__
self.determine_encoding()
File "/usr/local/lib/python3.8/dist-packages/yaml/reader.py", line 124, in determine_encoding
self.update_raw()
File "/usr/local/lib/python3.8/dist-packages/yaml/reader.py", line 178, in update_raw
data = self.stream.read(size)
File "/usr/lib/python3.8/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 38: ordinal not in range(128)
Probably a locale-related issue, as inside the reana-server's pod the default locale is POSIX:
Note that manually modifying the ConfigMap removing the Unicode character and adding its escaped counterpart works well. However, I haven't found a way to make Helm maintain the escaped sequence when generating the ConfigMap.
From:
apiVersion: v1
data:
ui-config.yaml: |
announcement: "Trying out some emojis ⭐"
...
To:
apiVersion: v1
data:
ui-config.yaml: |
announcement: "Trying out some emojis \u2B50"
...
Trying to put emojis in the reana-ui announcement results in the following error:
Probably a locale-related issue, as inside the reana-server's pod the default locale is
POSIX
:Note that manually modifying the ConfigMap removing the Unicode character and adding its escaped counterpart works well. However, I haven't found a way to make Helm maintain the escaped sequence when generating the ConfigMap.
From:
To: