transliteration - Transliterate Devnagri script to English using python transliterate package throwing 'ascii' codec error -




i need transliterate hindi text english maintaining pronunciation e.g प्रेम कथा should converted prem katha. using python indic_transliterate library.

sanscript.transliterate("टॉयलेट एक प्रेम कथा",_from=sanscript.devanagari,_to=sanscript.iast) 

but throwing error 'ascii' codec can't decode byte 0xe0 in position 0: ordinal not in range(128) though tried converting hindi string unicode , still issue same. can guide me how resolve this.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -