---
slug: "pythonでbomつきtsvファイルを読み込む"
title: "Reading BOM-Included TSV Files with Python"
description: "When you download a CSV from Amazon, it might sometimes be a TSV with a BOM."
url: "https://www.ytyng.com/en/blog/pythonでbomつきtsvファイルを読み込む"
publish_date: "2018-07-04T06:08:08Z"
created: "2018-07-04T06:08:08Z"
updated: "2026-02-27T11:37:06.919Z"
categories: ["Python"]
keywords: ""
featured_image_url: "https://media.ytyng.com/resize/20230812/c97717680ff7455b9c92ca459f8ef478.png.webp?width=768"
has_video: false
has_music: false
video_urls: []
music_urls: []
lang: "en"
---

# Reading BOM-Included TSV Files with Python

<p>When you download a CSV from Amazon, it might sometimes be a TSV with a BOM.</p>
<p></p>
<pre style="background-color: #ffffff; color: #000000; font-family: 'Menlo'; font-size: 9.0pt;"><span style="color: #000080; font-weight: bold;">import </span>csv<br />reader = csv.DictReader(<br />    <span style="color: #000080;">open</span>(file_path, <span style="color: #660099;">encoding</span>=<span style="color: #008080; font-weight: bold;">'utf-8-sig'</span>), <span style="color: #660099;">delimiter</span>=<span style="color: #008080; font-weight: bold;">'</span><span style="color: #000080; font-weight: bold;">\t</span><span style="color: #008080; font-weight: bold;">'</span>)</pre>
