Skip to content

Instantly share code, notes, and snippets.

View toc21c's full-sized avatar
🏠
Working from home

0x323143 toc21c

🏠
Working from home
View GitHub Profile
@toc21c
toc21c / fix-sami.py
Last active January 21, 2016 12:25 — forked from ageldama/fix-sami.py
fix-sami.py python3
import sys
import os
import tempfile
import shutil
def fix(src_filename, dst_filename, src_enc, dst_enc):
with open(src_filename, mode='r', encoding=src_enc) as file_in:
with open(dst_filename, mode='w', encoding=dst_enc) as file_out:
file_out.write("""<SAMI>
<HEAD>