petermr / openDiagram

Extaction of semantic data from diagrams in scientific and other technical/business documents
Apache License 2.0
1 stars 5 forks source link

Removing byte order marks in Python #12

Open ayush4921 opened 3 years ago

ayush4921 commented 3 years ago
file = open(byte_order_mark_file, mode='r', encoding='utf-8-sig').read()
open(byte_order_mark_file, mode='w', encoding='utf-8').write(file)