Created attachment 1669840 [details] Workloads ConfigMaps Show Correctly
Created attachment 1669841 [details] Pod Terminal show messy code 1. Create configmap with Chinese character from CLI or web console(console supports creating configmap with value as Chinese character) # cat chinese-configmap.yaml apiVersion: v1 kind: ConfigMap metadata: name: special-config data: special.how: very special.type: 信息技术部 # oc create -f chinese-configmap.yaml 2. View configmap details on console, Chinese character is displayed well 3. Config DC to use the ConfigMap # cat mydc.yaml apiVersion: apps.openshift.io/v1 kind: DeploymentConfig metadata: name: example namespace: yapei1-1 spec: selector: app: hello-openshift replicas: 1 template: metadata: labels: app: hello-openshift spec: containers: - name: hello-openshift image: yapei/hello-openshift ports: - containerPort: 8080 # oc create -f dc.yaml # oc set volumes dc/example --add=true --name=mytestvol --type=configmap --configmap-name=special-config --mount-path=/var/datatest 4. wait for new pods is created and running, visit pod Terminal on console sh-4.2 $ cat special.type // Chinese character is not shown correctly, it was in messy code
Created attachment 1676871 [details] Pod Terminal Show Correct Chinese Chars Follow the steps in comment 3, now Chinese chars can be shown correctly Verified on 4.5.0-0.nightly-2020-04-06-184201
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2409