<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>sanryuu</author_name>
  <author_url>https://blog.hatena.ne.jp/sanryuu/</author_url>
  <blog_title>考えたことや、学んだことの記録</blog_title>
  <blog_url>https://sanryuu.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>文字コード</anon>
  </categories>
  <description>はじめに UTF-8のファイルを読み込んでそのまま表示しようと思うのに、表示できず困ったので記録します。 結局、 #! /usr/bin/env ruby を #! /usr/bin/env ruby -Ku に変更したら日本語が表示できました。 試した方法 $KCODE Kconv.toutf8 File.open(&quot;hoge.txt&quot;, &quot;r:UTF-8&quot;) 結局見つけられなかった検索ワード達 いかに検索能力が低いか分かるような単語たち「文字列デコード Ruby」 「ruby 日本語 文字化け」 「encoding option is ignored」 「エンコード デコード 文字列 UR…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsanryuu.hatenadiary.org%2Fentry%2F20131211%2F1386772884&quot; title=&quot; ruby -Kuしたら文字コードの問題が解決しました。 - 考えたことや、学んだことの記録&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>2013-12-11 23:41:24</published>
  <title> ruby -Kuしたら文字コードの問題が解決しました。</title>
  <type>rich</type>
  <url>https://sanryuu.hatenadiary.org/entry/20131211/1386772884</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
