Accessing Bangla (UTF-8) string by index in Python -


i have string in bangla , i'm trying access characters index.

# -*- coding: utf-8 -*- bstr = "তরদজ" print bstr # line working fine in bstr:     print i, # question marks printed 

i don't know why isn't working.

turn unicode:

>>> bstr = "তরদজ" >>> in bstr.decode('utf-8'): ...     print ...  ত র দ জ 

Comments

Popular posts from this blog

android - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -