<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>malibu-bulldog</author_name>
  <author_url>https://blog.hatena.ne.jp/malibu-bulldog/</author_url>
  <blog_title>malibu-bulldogの日記</blog_title>
  <blog_url>https://malibu-bulldog.hatenadiary.org/</blog_url>
  <categories>
    <anon>Program Technique</anon>
  </categories>
  <description>相変わらずpythonの文字コードの扱いを腰を据えて勉強しないまま公私共にpythonをガンガン使っているんだが… 当然のように文字列処理でちょこちょこ詰まります。（文字コードの扱いをしっかりやってないので当たり前ですね） この前はまったのはutf-8形式のテキストファイルにBOMと呼ばれる情報があった場合はpythonでは素直にやっていたのでは読み込めない件。どういう事かというと… まずBOMとはバイト・オーダー・マークの略で，Unicodeのデータの先頭数バイトに存在してデータの種類を表すもの。 ところが，符号単位を8bitにとるutf-8はその形式上バイト・オーダー・マークが必要ない。 …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmalibu-bulldog.hatenadiary.org%2Fentry%2F20130818%2Fp1&quot; title=&quot;Windowsマシンでpythonを使ってutf-8のBOM付きファイルを触る - malibu-bulldogの日記&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>2013-08-18 00:00:00</published>
  <title>Windowsマシンでpythonを使ってutf-8のBOM付きファイルを触る</title>
  <type>rich</type>
  <url>https://malibu-bulldog.hatenadiary.org/entry/20130818/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
