dhoomakethu / panchanga-cli

Command line version of drik-panchanga
GNU Affero General Public License v3.0
13 stars 5 forks source link

UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-111: ordinal not in range(128) #2

Closed saikiran91 closed 4 years ago

saikiran91 commented 6 years ago

./panchanga_cli Traceback (most recent call last): File "./panchanga_cli", line 6, in run_cli() File "/Users/sai/Projects/panchanga/panchanga-cli/panchanga/cli/main.py", line 317, in run_cli print u"\n".join(combined_dabbas) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-111: ordinal not in range(128)

saikiran91 commented 6 years ago

add print u"\n".join(combined_dabbas).encode('utf-8') and it worked fine.

dhoomakethu commented 6 years ago

@saikiran91 Are you using python2 ?