<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>anton0825</author_name>
  <author_url>https://blog.hatena.ne.jp/anton0825/</author_url>
  <blog_title>日々精進</blog_title>
  <blog_url>https://anton0825.hatenablog.com/</blog_url>
  <categories>
    <anon>AI</anon>
  </categories>
  <description>↓の文字コード表では、JISコードの0x2422は「あ」という文字に対応している。 ash.jp 以下によると、JISコードとは「ISO-2022-JP」の別名 ja.wikipedia.org 以下によると、「ISO-2022-JP」に変換するにはiso2022_jpを指定すればいいように見える。 docs.python.org 上記より、以下を実行すると「あ」になるように思えるがそうならない。 bytes([0x24, 0x22]).decode('iso2022_jp') #=&gt; 「あ」になってほしいが「$&quot;」になる asciiコードで0x24と0x22はそれぞれ$と&quot;なので、1バイト文…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanton0825.hatenablog.com%2Fentry%2F2016%2F12%2F21%2F000000&quot; title=&quot;PythonでJISコードを文字に変換すると意図した文字にならない - 日々精進&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>2016-12-21 00:00:00</published>
  <title>PythonでJISコードを文字に変換すると意図した文字にならない</title>
  <type>rich</type>
  <url>https://anton0825.hatenablog.com/entry/2016/12/21/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
