Created
January 6, 2017 12:07
-
-
Save manashmandal/0c3a2af79ba3e71049bd37205df8f512 to your computer and use it in GitHub Desktop.
Reading bangla in python 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
পাইথন | |
বাংলাদেশ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import codecs | |
filename = 'bangla.txt' | |
f = codecs.open(filename, 'r', 'utf-8') | |
x = f.read().split('\n') | |
for item in x: | |
print item |
Author
manashmandal
commented
Jan 6, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment