<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>iizukaw</author_name>
  <author_url>https://blog.hatena.ne.jp/iizukaw/</author_url>
  <blog_title>はて日記</blog_title>
  <blog_url>https://iizukaw.hatenadiary.org/</blog_url>
  <categories>
    <anon>perl</anon>
    <anon>linux</anon>
  </categories>
  <description>シフトJISの日本語ファイル名が入ったzipファイルを受け取ってしまったとき、UTF-8環境のLinux上でunzipすると文字化けして大変なことになります… 解凍後に変換しようとしてもどうしようもないので、SJISからUTF-8にファイル名を変換した上で解凍するPerlスクリプトを勉強がてら作ってみました。 CPANモジュールの Archive::Zip などが必要です。 #!/usr/bin/perl # ファイル名をSJISからUTF-8に変換しながらzipを解凍する use strict; use warnings; use Archive::Zip qw( :ERROR_CODES …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiizukaw.hatenadiary.org%2Fentry%2F20080829%2Fp1&quot; title=&quot;日本語（シフトJIS）を含んだzipやlzhをUTF-8に変換しながら解凍 - はて日記&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>2008-08-29 00:00:00</published>
  <title>日本語（シフトJIS）を含んだzipやlzhをUTF-8に変換しながら解凍</title>
  <type>rich</type>
  <url>https://iizukaw.hatenadiary.org/entry/20080829/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
