docker run --rm -it openvisualcloud/xeon-ubuntu1804-analytics-gst /bin/bash
root@0bb08ea66552:/home# python3
Python 3.6.9 (default, Apr 18 2020, 01:56:04)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
x="\u8080"
try:
... raise Exception(x)
... except Exception as e:
... print("Exception: "+str(e))
...
Traceback (most recent call last):
File "", line 2, in
Exception: \u8080
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "", line 4, in
UnicodeEncodeError: 'ascii' codec can't encode character '\u8080' in position 11: ordinal not in range(128)
However, if I do it on regular Ubuntu1804 on the host:
$ python3
Python 3.6.9 (default, Apr 18 2020, 01:56:04)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
x="\u8080"
try:
... raise Exception(x)
... except Exception as e:
... print("Exception "+str(e))
...
Exception 肀