<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kiyo560808</author_name>
  <author_url>https://blog.hatena.ne.jp/kiyo560808/</author_url>
  <blog_title>久保清隆のブログ</blog_title>
  <blog_url>https://kiyotakakubo.hatenablog.com/</blog_url>
  <categories>
    <anon>プログラミング</anon>
  </categories>
  <description>Ruby(1.8.6)で文字コードを変換したかった。 Rubyで文字コードを変換するには、 kconvを利用する方法 nkfを利用する方法 iconvを利用する方法 の３つがある。 csvダウンロードするために、utf-8をsjisに変換する必要があった。 kconvを用いる方法 Kconvは自動的に、MIMEをデコードしたり、半角カタカナを全角カタカナに変換したりする。 このような動作を好まない場合は、NKF モジュールを直接用いる必要がある。 ちなみに、Kconvは内部ではNKFを用いて変換を行っている。 kconvを使うのが一番手軽そうだったので、 コントローラでrequire 'kco…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkiyotakakubo.hatenablog.com%2Fentry%2F20090306%2F1236322250&quot; title=&quot;文字コードの変換方法まとめ　〜Rubyで文字化けした時の対応方法 - 久保清隆のブログ&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>http://blogranking.fc2.com/ranking_banner/a_04.gif</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-03-06 15:50:50</published>
  <title>文字コードの変換方法まとめ　〜Rubyで文字化けした時の対応方法</title>
  <type>rich</type>
  <url>https://kiyotakakubo.hatenablog.com/entry/20090306/1236322250</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
