<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fallpoke</author_name>
  <author_url>https://blog.hatena.ne.jp/fallpoke/</author_url>
  <blog_title>誰かの技術置き場</blog_title>
  <blog_url>https://fallpoke-tech.hatenadiary.jp/</blog_url>
  <categories>
    <anon>FastAPI</anon>
    <anon>Python</anon>
    <anon>Webアプリ</anon>
    <anon>備忘録</anon>
  </categories>
  <description>お疲れ様です。 今回はFastAPIのファイルダウンロードで日本語のファイル名をダウンロードする際の注意点についてまとめました。 ちょうど1年前くらいにFastAPIでファイルダウンロードをするAPIを作成していました。 その際はファイル名を半角英数字のみで作成していたため気づかなかったのですが、この時のコードだと日本語を含むファイル名のファイルをダウンロードしようとするとエラーが起こります。 fallpoke-tech.hatenadiary.jp ソースコード 今回もエラー再現のためにデモページとAPIを作成しました。 以下GitHubに残してありますので必要があればご確認ください。 gi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffallpoke-tech.hatenadiary.jp%2Fentry%2F2026%2F01%2F05%2F001123&quot; title=&quot;【FastAPI】日本語を含むファイル名のファイルをダウンロードする際のエラーと対処【備忘録】 - 誰かの技術置き場&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-ak.f.st-hatena.com/images/fotolife/f/fallpoke/20260105/20260105000419.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-01-05 00:11:23</published>
  <title>【FastAPI】日本語を含むファイル名のファイルをダウンロードする際のエラーと対処【備忘録】</title>
  <type>rich</type>
  <url>https://fallpoke-tech.hatenadiary.jp/entry/2026/01/05/001123</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
