paulfantom / dotfiles

:fire: :dragon: My dotfiles (vim, KDE, git, dragons...)
MIT License
7 stars 1 forks source link

Use proper encoding #4

Closed jkrol2 closed 6 years ago

jkrol2 commented 6 years ago

Without that sometimes will throw error:

kuba@kuba:/tmp/dotfiles/bin$ python space_launch.py 
Traceback (most recent call last):
  File "space_launch.py", line 39, in <module>
    print get_launch(URL)
  File "space_launch.py", line 33, in get_launch
    msg = "NEXT SPACE LAUNCH: {}, mission {} with {} rocket".format(date, mission, rocket)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2116' in position 10: ordinal not in range(128)
paulfantom commented 6 years ago

You have old script version. Please look at current from master branch.

jkrol2 commented 6 years ago

Yeah, that's true, closing