<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>podhmo</author_name>
  <author_url>https://blog.hatena.ne.jp/podhmo/</author_url>
  <blog_title>podhmoの日記</blog_title>
  <blog_url>https://podhmo.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>こんなスクリプトを # -*- coding:utf-8 -*- print u&quot;にほんご&quot; shell 直接呼び出すと大丈夫 $ python pipe_sample.py にほんご pipeで他のコマンドに渡すとUnicodeEncodeError $ python pipe_sample.py | cat Traceback (most recent call last): File &quot;pipe_sample.py&quot;, line 2, in &lt;module&gt; print u&quot;にほんご&quot; UnicodeEncodeError: 'ascii' codec can't encode char…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpodhmo.hatenadiary.org%2Fentry%2F20120308%2F1331166301&quot; title=&quot; pythonスクリプトをpipeで渡すとUnicodeEncodeErrorが出る。 - podhmoの日記&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>2012-03-08 09:25:01</published>
  <title> pythonスクリプトをpipeで渡すとUnicodeEncodeErrorが出る。</title>
  <type>rich</type>
  <url>https://podhmo.hatenadiary.org/entry/20120308/1331166301</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
