<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Seasons</author_name>
  <author_url>https://blog.hatena.ne.jp/Seasons/</author_url>
  <blog_title>Seasons.NET</blog_title>
  <blog_url>https://seasons.hateblo.jp/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>libpngを使うために cygwin rubyを使ってますがその際に気をつけること。 全角文字を扱う時には、$KCODE = &quot;s&quot;だけではダメだということ。 !#/usr/bin/ruby -Ks -Ksのオプションの場合、スクリプト解析にはいる前にSJISとして 解析するため日本語をうまく扱うことができる。 逆に、$KCODEの場合は、スクリプト解析後なので、うまく働かない時がある。デフォルトでは、$KCODE = NONE なので必ず付ける癖を！！Windowsの場合も *.batに忘れずに！！</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fseasons.hateblo.jp%2Fentry%2F20060910%2F1157802383&quot; title=&quot;全角文字コード対策 - Seasons.NET&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>2006-09-10 20:46:23</published>
  <title>全角文字コード対策</title>
  <type>rich</type>
  <url>https://seasons.hateblo.jp/entry/20060910/1157802383</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
