I cannot type unicode characters into an ubuntu:14.04 container, but can do just fine in a busybox container, which is really a surprise because busybox is just 2.4 MB while ubuntu:14.04 is 200+ MB. What is the reason?
To enter a character by its code point, press Ctrl + Shift + U , then type the four-character code and press Space or Enter .
What's BusyBox? Dubbed the “Swiss Army Knife of Embedded Linux,” BusyBox packages together multiple, common UNIX utilities (or applets) into one executable binary. It helps you create your own Linux distribution, and our associated container image helps you deploy it across different devices.
You can set BusyBox as your shell using the chsh --shell command, followed by the path to the BusyBox sh application. I keep BusyBox in /lib64 , but its location depends on where your distribution installed it.
I opened an issue and it turned out that the solution is pretty simple. One needs to run the container with the option:
-e LANG=C.UTF-8
I have tested with other UTF-8 variants (such as en_US.UTF-8 and el_GR.UTF-8) but they don't seem to work.
Setting the LANG environment variable in the Dockerfile seems to work as well. Just add the line:
ENV LANG C.UTF-8
I'm still not sure however what's so special about C.UTF-8 over the other UTF-8 variants...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With