瀏覽代碼

Run update.sh

Jenkins 9 年之前
父節點
當前提交
bf503ce02c
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      ruby/README.md

+ 4 - 0
ruby/README.md

@@ -62,6 +62,10 @@ For many simple, single file projects, you may find it inconvenient to write a c
 $ docker run -it --rm --name my-running-script -v "$PWD":/usr/src/myapp -w /usr/src/myapp ruby:2.1 ruby your-daemon-or-script.rb
 ```
 
+## Encoding
+
+By default, Ruby inherits the locale of the environment in which it is run. For most users running Ruby on their desktop systems, that means it's likely using some variation of `*.UTF-8` (`en_US.UTF-8`, etc). In Docker however, the default locale is `C`, which can have unexpected results. If your application needs to interact with UTF-8, it is recommended that you explicitly adjust the locale of your image/container via `-e LANG=C.UTF-8` or `ENV LANG C.UTF-8`.
+
 # Image Variants
 
 The `ruby` images come in many flavors, each designed for a specific use case.