<?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>
  </categories>
  <description>404 Blog Not Found:備忘録 - #python3 で sys.std(in|out|err) の encoding を強制する というわけでこうなりました。 import sys sys.stdin = open('/dev/stdin', 'r', encoding='UTF-8') ... 無理矢理開き直すなんてずいぶんと乱暴だと私も思うのですが、 こういう強引な方法がちゃんと動くのがLLのいいところですね。 /dev/stdin だとWindowsでは動かないので、 open(sys.stdin.fileno(), ...) がいいと思います。 ぐぐれど探せどこれしか解…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F20120806%2F1344269400&quot; title=&quot; Python 3 の標準入出力のエンコーディング - 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>2012-08-06 01:10:00</published>
  <title> Python 3 の標準入出力のエンコーディング</title>
  <type>rich</type>
  <url>https://methane.hatenablog.jp/entry/20120806/1344269400</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
