<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>k-holy</author_name>
  <author_url>https://blog.hatena.ne.jp/k-holy/</author_url>
  <blog_title>k-holyのPHPとか諸々メモ</blog_title>
  <blog_url>https://k-holy.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>SPL</anon>
    <anon>Windows</anon>
  </categories>
  <description>まず手元の Windows7 + PHP 5.6.0 で検証した上での結論を書くと 「Windows で日本語ファイルパスを扱う場合 SplFileInfo は使うな」 です。 ロケール設定を適切に行うことで basename() や pathinfo() に関しては、Shift_JISのコード表に起因するいわゆる「5C問題」も回避できました。 しかし、SplFileInfo::getBasename() や SplFileInfo::isFile() に関しては、適切にロケールを設定したとしても、残念ながら「5C問題」を回避できなかったのです。 ロケール設定の影響を受ける関数について 文字列…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fk-holy.hatenablog.com%2Fentry%2F2014%2F09%2F03%2F085847&quot; title=&quot;Windows環境のPHPで日本語ファイルパスを扱う場合の注意点 - k-holyのPHPとか諸々メモ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-09-03 08:58:47</published>
  <title>Windows環境のPHPで日本語ファイルパスを扱う場合の注意点</title>
  <type>rich</type>
  <url>https://k-holy.hatenablog.com/entry/2014/09/03/085847</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
