<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bonlife</author_name>
  <author_url>https://blog.hatena.ne.jp/bonlife/</author_url>
  <blog_title>bonlife</blog_title>
  <blog_url>https://bonlife.hatenadiary.org/</blog_url>
  <categories>
    <anon>IT</anon>
    <anon>勉強</anon>
    <anon>Python</anon>
  </categories>
  <description>id:piro_sukeさんがアレコレやってるのを見てちょいと試しているうちに、予想外なところで罠にハマってしまったbonlifeです。同じことで躓く人はあまりいないような気がしますが、備忘録メモです。 csvモジュールで日本語を扱う場合に気をつけないと悲しい気持ちになってしまうかもしれませんよ、というお話。 サンプル1 sys.getdefaultencoding() で得られる文字コードは cp932 ファイルの文字コードは cp932 出力するCSVの文字コードは cp932 # -*- coding: cp932 -*- import sys import csv import cod…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbonlife.hatenadiary.org%2Fentry%2F20070831%2F1188564822&quot; title=&quot; csvモジュールがUnicode入力をサポートしていない罠 - bonlife&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>2007-08-31 21:53:42</published>
  <title> csvモジュールがUnicode入力をサポートしていない罠</title>
  <type>rich</type>
  <url>https://bonlife.hatenadiary.org/entry/20070831/1188564822</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
