1
2

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 5 years have passed since last update.

PHPで、連想配列がUndefined indexになるが、文字化けしてキーが見えない場合の対処法

1
Posted at

Apacheに以下のようなログがでた場合、連想配列の存在しないキーにアクセスしていることはわかるが、アクセスしようとしたキーはエンコードされてしまっていて良くわからない。

PHP Notice:  Undefined index: \xe6\x9d\x90\xe6\x96\x99\xe5\x8c\xba\xe5\x88\x86CD in /var/www/html/xxx/yyy/zzz.php on line 4744,

以下のサイトに「\xe6\x9d\x90\xe6\x96\x99\xe5\x8c\xba\xe5\x88\x86CD」を入力してDecodeすると、日本語で読める状態に戻るので便利だ。

1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?