Skip to content

Instantly share code, notes, and snippets.

@manashmandal
Created January 6, 2017 12:07
Show Gist options
  • Save manashmandal/0c3a2af79ba3e71049bd37205df8f512 to your computer and use it in GitHub Desktop.
Save manashmandal/0c3a2af79ba3e71049bd37205df8f512 to your computer and use it in GitHub Desktop.
Reading bangla in python 2
পাইথন
বাংলাদেশ
import codecs
filename = 'bangla.txt'
f = codecs.open(filename, 'r', 'utf-8')
x = f.read().split('\n')
for item in x:
print item
@manashmandal
Copy link
Author

readbangla

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment