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

phpでのfopenとcopyエラー

Posted at

今phpで数百個の日本語名ファイルをディレクトリから読み取る作業を行っているのですが、

‐がファイル名に入ってしまうとfopenもcopyもエラーとなりどうする事も出来ません。

試したことは

mb_convert_encodingでutf-8に変換
ハイフンが?になるのでstr_replaceで置換

まではやってみましたが、エラーになってしまいます。

何か打開策はあるのだろうか

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?