<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bigsize1860</author_name>
  <author_url>https://blog.hatena.ne.jp/bigsize1860/</author_url>
  <blog_title>コバルトブルーの心の叫び</blog_title>
  <blog_url>https://bigsize1860.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>簡単なツール作るつもりが、はまってしまった。 忘れそうなので、解決策を残しておく。やろうとしたのは、Excelデータの一覧表をちょっとフォーマット変えてMySQLのテーブルにロードするということ。 そのために、ExcelデータをCSV形式で保存して（ここまでは手動）、それをRuby使って読込んでMySQL上のテーブルレイアウトと同様のCSVファイルを書き出すプログラムをRubyで作成した。数分でＰＧは完了したが、MySQLへのLOAD時にエラーとなっていた。 LOADが成功するファイルと見比べてみると、改行コードが異なることが分かった。 （このとき、ちゃんとしたエディタで開いたからすぐ分かって…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbigsize1860.hatenadiary.org%2Fentry%2F20101214%2F1292313048&quot; title=&quot;Rubyの改行コード[CR+LF]と[LF] - コバルトブルーの心の叫び&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>2010-12-14 16:50:48</published>
  <title>Rubyの改行コード[CR+LF]と[LF]</title>
  <type>rich</type>
  <url>https://bigsize1860.hatenadiary.org/entry/20101214/1292313048</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
