<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>omiyan</author_name>
  <author_url>https://blog.hatena.ne.jp/omiyan/</author_url>
  <blog_title>ドラあり！*ドラゴンに挑むアリの物語 ** Python使いの日々</blog_title>
  <blog_url>https://omiyan.hatenadiary.org/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>Pythonはデフォルトのエンコーディングを指定しないと、UnicodeEncodeErrorが発生する場合があります。今回はその解決方法について記載します。４つ環境を用意してみました。 エラー例 # python Python 2.6.6 (r266:84292, Jan 3 2011, 14:20:44) [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2 Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information. &gt;&gt;&gt; s = u'てすと' &gt;&gt;&gt; str(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fomiyan.hatenadiary.org%2Fentry%2F20110105%2Fp1&quot; title=&quot;PythonでUnicodeEncodeError: &amp;#39;ascii&amp;#39; codecがでた場合の対処方法 - ドラあり！*ドラゴンに挑むアリの物語 ** 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-01-05 00:00:00</published>
  <title>PythonでUnicodeEncodeError: 'ascii' codecがでた場合の対処方法</title>
  <type>rich</type>
  <url>https://omiyan.hatenadiary.org/entry/20110105/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
