0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

PHPのDockerイメージでpathinfo関数がマルチバイト文字を扱えない問題

Last updated at Posted at 2021-04-21

setlocale(LC_ALL, 'ja_JP.UTF-8');しても、そもそもja_jp.UTF-8が入っていませんでした。

備忘録代わりに記録しておきます。

RUN apt-get -y install ...(必要なパッケージ類)... locales # localesがないと以下がコケる
RUN localedef -f UTF-8 -i ja_JP ja_JP.UTF-8
ENV LANG="ja_JP.UTF-8" \
    LANGUAGE="ja_JP:ja" \
    LC_ALL="ja_JP:UTF-8"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?