<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ShineSpark</author_name>
  <author_url>https://blog.hatena.ne.jp/ShineSpark/</author_url>
  <blog_title>人生シーケンスブレイク</blog_title>
  <blog_url>https://shinespark.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>哀しいことにCSVなどでなく固定文字列長のCP932ファイルからインポートを行わないといけなくなったのでその対処方法。 ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin15] データのイメージ 123456abcdef池袋 ｲｹﾌﾞｸﾛ 10 123456abcdef目白 ﾒｼﾞﾛ 10 123456abcdef高田馬場 ﾀｶﾀﾞﾉﾊﾞﾊﾞ 10 全角=2バイト, 半角1バイトという前提でデータファイルが設計されているが、Ruby 2.x で文字列として全角半角問わず1文字は1文字としてカウントされる為、文字数がズレることがある…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinespark.hatenablog.com%2Fentry%2F2017%2F07%2F08%2F080000&quot; title=&quot;Rubyで固定長のCP932(Shift_JIS)ファイルを扱う - 人生シーケンスブレイク&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>https://cdn.blog.st-hatena.com/images/theme/og-image-1500.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-07-08 08:00:00</published>
  <title>Rubyで固定長のCP932(Shift_JIS)ファイルを扱う</title>
  <type>rich</type>
  <url>https://shinespark.hatenablog.com/entry/2017/07/08/080000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
