<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ku__ra__ge</author_name>
  <author_url>https://blog.hatena.ne.jp/ku__ra__ge/</author_url>
  <blog_title>くらげのChangeLog</blog_title>
  <blog_url>https://culage.hatenablog.com/</blog_url>
  <categories>
    <anon>program</anon>
  </categories>
  <description>現象 PHPExcelでExcel2007形式を扱うとき、setCellValueで「お」やその他特定の文字を含む文字列を設定するとセルが空になる、という現象に遭遇した。 問題ある文字が含まれていなければ、普通にセルに日本語を出力することはできる。 原因 php.iniで「default_charset=&quot;Shift_JIS&quot;」に設定されていたこと。 対策 「ini_set(&quot;default_charset&quot;, &quot;UTF-8&quot;);」を読んでプログラム側でini設定を一時的に変更してやることで、正常に動作するようになる。 当然php.iniで「default_charset=&quot;UFT-8&quot;」に設…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fculage.hatenablog.com%2Fentry%2F20170425%2Fp1&quot; title=&quot;PHPExcelでセルに日本語を出力するとき、一部の文字が出力できなくて空になる問題 - くらげのChangeLog&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>2017-04-25 00:00:01</published>
  <title>PHPExcelでセルに日本語を出力するとき、一部の文字が出力できなくて空になる問題</title>
  <type>rich</type>
  <url>https://culage.hatenablog.com/entry/20170425/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
