Reading BOM-Included TSV Files with Python
Python
2018-07-04 06:08 (8 years ago)

When you download a CSV from Amazon, it might sometimes be a TSV with a BOM.
import csv
reader = csv.DictReader(
open(file_path, encoding='utf-8-sig'), delimiter='\t')
Please rate this article (No signup or login required)
Currently unrated
Related posts
Since BitLocker decryption key files are in UTF-16, they cannot be searched with grep -R, so use a script to search.
Remove 4-byte Characters from Strings in Python
Retrieve Google Spreadsheet Content as a List of Dictionaries using GAS
Fixing the Issue of Separated Voiced Marks in Folder Names on Mac When Outputting from Python
The author runs the application development company Cyberneura.
We look forward to discussing your development needs.
We look forward to discussing your development needs.