<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>munibus</author_name>
  <author_url>https://blog.hatena.ne.jp/munibus/</author_url>
  <blog_title>Muni Bus</blog_title>
  <blog_url>https://munibus.hatenablog.com/</blog_url>
  <categories>
    <anon>PowerShell</anon>
  </categories>
  <description>以下はカレントディレクトリに、順番にシフトJIS、UTF-8（BOM無し）、UTF-8（BOM付き）、UTF-16（ビッグエンディアン、BOM付き）、UTF-16（リトルエンディアン、BOM付き）のCSVファイルを出力した例。 PowerShellのコマンドレットでは、Unicode系は原則BOM付きとなる。そのため、BOM無しのUTF-8の出力には、FileクラスのWriteAllLinesメソッドを使用している。 PS &gt; $lines = &quot;no,name&quot;, &quot;1,ABC&quot;, &quot;2,abc&quot;, &quot;3,あいう&quot; PS &gt; $odir = (gl).Path PS &gt; $lines | O…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmunibus.hatenablog.com%2Fentry%2F2023%2F09%2F10%2F224706&quot; title=&quot;【PowerShell】様々な文字コードのサンプルCSVファイルを作成する - Muni Bus&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>2023-09-10 22:47:06</published>
  <title>【PowerShell】様々な文字コードのサンプルCSVファイルを作成する</title>
  <type>rich</type>
  <url>https://munibus.hatenablog.com/entry/2023/09/10/224706</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
