我正在使用这个Jenkins slave docker 镜像,它基于 ubuntu:14.04
我想使用一个包含 UTF-8 字符的字符串参数。
像öüóőúűáéí
(匈牙利字符)这样的字符将被替换为question marks
正如这张票所提到的,我试图通过-e LANG=hu_HU.UTF-8
并bash -c "locale-gen hu_HU.UTF-8"
到达码头。我还放置export LANG=hu_HU.UTF-8
到 Jenkins 用户的.bashrc
字符仍然被替换。我也试过en_US.UTF-8
我也尝试对 Jenkins Job 做同样的事情:
+ export LANG=hu_HU.UTF-8
+ locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=hu_HU.UTF-8
LANGUAGE=
LC_CTYPE="hu_HU.UTF-8"
LC_NUMERIC="hu_HU.UTF-8"
LC_TIME="hu_HU.UTF-8"
LC_COLLATE="hu_HU.UTF-8"
LC_MONETARY="hu_HU.UTF-8"
LC_MESSAGES="hu_HU.UTF-8"
LC_PAPER="hu_HU.UTF-8"
LC_NAME="hu_HU.UTF-8"
LC_ADDRESS="hu_HU.UTF-8"
LC_TELEPHONE="hu_HU.UTF-8"
LC_MEASUREMENT="hu_HU.UTF-8"
LC_IDENTIFICATION="hu_HU.UTF-8"
LC_ALL=
输出是一样的。
谢谢你。