<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>cartooh</author_name>
  <author_url>https://blog.hatena.ne.jp/cartooh/</author_url>
  <blog_title>cartoohのメモ</blog_title>
  <blog_url>https://cartooh.hatenadiary.org/</blog_url>
  <categories>
    <anon>jruby</anon>
  </categories>
  <description>jrubyのNKFはJavaのjava.nio.charset.Charsetを使っているから、 WAVE DASH (U+301C, &quot;〜&quot;)を含む文字列を変換しようとすると 変換に失敗しinvalid encoding (ArgumentError)が発生する。 ちょっとこれは困るのでNativeのNKFを使うようにFFIとnkf32.dllを 使って再定義してみた。windows限定だけど。 FFI http://wiki.github.com/ffi/ffi nkf32.dll http://www.vector.co.jp/soft/win95/util/se295331.html …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcartooh.hatenadiary.org%2Fentry%2F20091219%2F1261235165&quot; title=&quot;NKFを再定義＠windows - cartoohのメモ&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-12-19 00:06:05</published>
  <title>NKFを再定義＠windows</title>
  <type>rich</type>
  <url>https://cartooh.hatenadiary.org/entry/20091219/1261235165</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
