<?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>Select-Stringコマンドレットに-Encodingオプションを使用して実行する。-Encodingオプションにdefaultを指定すると、文字コードをシフトJISとして検索する。以下は、シフトJISでファイルを作成し、それを使用して実際に検索した例。-Encodingオプションを付けない場合は検索できないが、-Encodingオプションにdefaultを指定すると、検索できていることがわかる。 PS &gt; $lines = &quot;あい&quot;, &quot;いうえ&quot;, &quot;うえお&quot; PS &gt; $odir = (gl).Path PS &gt; $lines | Out-File -Encoding default…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmunibus.hatenablog.com%2Fentry%2F2023%2F10%2F01%2F234554&quot; title=&quot;【PowerShell】文字コードがシフトJISのテキストファイルから文字を検索する - 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-10-01 23:45:54</published>
  <title>【PowerShell】文字コードがシフトJISのテキストファイルから文字を検索する</title>
  <type>rich</type>
  <url>https://munibus.hatenablog.com/entry/2023/10/01/234554</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
