<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hiro-ueda</author_name>
  <author_url>https://blog.hatena.ne.jp/hiro-ueda/</author_url>
  <blog_title>BSDmad の日記</blog_title>
  <blog_url>https://bsdmad.hatenablog.com/</blog_url>
  <categories>
    <anon>misc</anon>
    <anon>教えて!</anon>
  </categories>
  <description>某製品*1の NDR が文字化けする、というクレームを受けて担当者と調べてみたところ、NDR がマルチパートメールになっていて、ISO-2022-JP の text/plain パートが BASE64 エンコーディングされており、そこに問題がありそうなことが分かりました。「ISO-2022-JP なのに何故 BASE64 エンコーディングしとるんじゃ？」という疑問はさておき $ nkf -emB hoge.txt などとしてもキチンとデコードされません。おかしいなぁ、と思って色々見てみたところ、NDR の BASE64 エンコーディングされたデータの 1行の文字数が 4の倍数になっていないのが…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbsdmad.hatenablog.com%2Fentry%2F20070626%2F1182868264&quot; title=&quot; BASE64 エンコードの一行の文字数の制約条件 - BSDmad の日記&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-06-26 23:31:04</published>
  <title> BASE64 エンコードの一行の文字数の制約条件</title>
  <type>rich</type>
  <url>https://bsdmad.hatenablog.com/entry/20070626/1182868264</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
