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?

(自分用)apache2の文字化けしたときの治す方法

Last updated at Posted at 2024-10-13

apacheで文字化けしたら

調べてもhttpdしか出てこなかったのでメモをしておく。

cd /etc/apache2/conf-availables/
sudo nano charset.conf

そしたら

# Read the documentation before enabling AddDefaultCharset.
# In general, it is only a good idea if you know that all your files
# have this encoding. It will override any encoding given in the files
# in meta http-equiv or xml encoding tags.

#AddDefaultCharset UTF-8

となっているので、UTF-8の人は、

# Read the documentation before enabling AddDefaultCharset.
# In general, it is only a good idea if you know that all your files
# have this encoding. It will override any encoding given in the files
# in meta http-equiv or xml encoding tags.

AddDefaultCharset UTF-8

#を消しましょう。
その他の人は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?