<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rubyco</author_name>
  <author_url>https://blog.hatena.ne.jp/rubyco/</author_url>
  <blog_title>rubyco（るびこ）の日記</blog_title>
  <blog_url>https://rubyco.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>UTF8文字列をShift_JISに変換する例。 require 'kconv' MATHGIRL = &quot;\346\225\260\345\255\246\343\202\254\343\203\274\343\203\253&quot; puts MATHGIRL puts MATHGIRL.tosjis 実行結果です(Windowsのコマンドラインにて)。 謨ｰ蟄ｦ繧ｬ繝ｼ繝ｫ (UTF8直接出力して文字化け) 数学ガール (Shift_JISに変換されて文字化けしない)補足： ri Stringを読んでいて、tosjisというインスタンスメソッドがあるのを発見。 へえ、便利だなあと思って使おうとし…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubyco.hatenadiary.org%2Fentry%2F20090222%2Fstring&quot; title=&quot;UTF8文字列をShift_JISに変換する - rubyco（るびこ）の日記&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>2009-02-22 00:00:01</published>
  <title>UTF8文字列をShift_JISに変換する</title>
  <type>rich</type>
  <url>https://rubyco.hatenadiary.org/entry/20090222/string</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
