<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Michael_e29</author_name>
  <author_url>https://blog.hatena.ne.jp/Michael_e29/</author_url>
  <blog_title>何でも屋さんの備忘録</blog_title>
  <blog_url>https://michael-e29.hatenadiary.org/</blog_url>
  <categories>
    <anon>Python</anon>
    <anon>MS-DOS</anon>
  </categories>
  <description>はじめにPythonは非常に気持ちいい言語である。しかしunicodeを扱おうと思ったとたん、イライラさせられる。日本人のプログラマーはRubyを使っている人が多いけど、このあたりの違いによる物なのかなぁ〜と勝手に思ってみたり、、、 さて本題 マルチバイト文字についてstr型は1文字=1バイトのバイト列として文字列を扱う。しかし日本語の場合1バイトでは全ての文字を表現しきれないので、1文字に対して複数バイトを割り当てるマルチバイトコーディングが利用されている。MS-DOSでは、デフォルトでshift-JISが使われている。shift-JISは2バイト目に\が使われる場合がある。具体的には漢字の…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmichael-e29.hatenadiary.org%2Fentry%2F20110513%2F1305270730&quot; title=&quot;Pythonのバイト文字列とユニコード文字列のお話 - 何でも屋さんの備忘録&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>2011-05-13 16:12:10</published>
  <title>Pythonのバイト文字列とユニコード文字列のお話</title>
  <type>rich</type>
  <url>https://michael-e29.hatenadiary.org/entry/20110513/1305270730</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
