<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>methane</author_name>
  <author_url>https://blog.hatena.ne.jp/methane/</author_url>
  <blog_title>methaneのブログ</blog_title>
  <blog_url>https://methane.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description># coding: utf-8 def foo(): &quot;&quot;&quot;ほにゃらら&quot;&quot;&quot; 一般的にdocstringと言われていて標準的に使われるドキュメント形式なんだけど、上記のように通常の文字列として書いた場合は (Python 2.xでは) byte string になり、utf-8でエンコードされているという情報が抜けてしまう。 当然のように、非ASCIIなbyte stringは慎重に扱わないと、すぐにUnicodeErrorになる。 from __future__ import unicode_literals をするか、 u&quot;&quot;&quot;ほにゃらら&quot;&quot;&quot; と書くべき。例えば、Trac-ja が設定項…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F20091030%2F1256873681&quot; title=&quot; 日本語のdocstringはunicode literalで書こう - methaneのブログ&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>2009-10-30 12:34:41</published>
  <title> 日本語のdocstringはunicode literalで書こう</title>
  <type>rich</type>
  <url>https://methane.hatenablog.jp/entry/20091030/1256873681</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
