medicalvox-backend / fix_encoding.py
codewithdeved's picture
Deployment issue fixed.
9b190eb
Raw History Blame Contribute Delete
229 Bytes
import codecs
with codecs.open('requirements.txt', 'r', 'utf-16') as f:
text = f.read()
with codecs.open('requirements.txt', 'w', 'utf-8') as f:
f.write(text)
print("Successfully converted requirements.txt to UTF-8!")