I can save file to utf-16-le
, but i dont understand how save with bom
it.
import csv
with open('filename.csv', mode='a', newline='', encoding='utf-16-le') as employee_file:
writer = csv.writer(employee_file, delimiter=";")
row = ['Job1', 'M']
writer.writerow(row)
I can add '\ufeff
to start of file, but i search alternative variant