Skip to content

Commit

Permalink
hero names encoded as UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
onethirtyfive committed Aug 31, 2013
1 parent 9510e5e commit 1b0e712
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bin/skadi
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ for abspath in args:

print 'player summary:'
for pi in file_info.game_info.dota.player_info:
print '- {} ({})'.format(pi.player_name, pi.hero_name)
player_name = pi.player_name.encode('UTF-8')
hero_name = pi.hero_name.encode('UTF-8')
print '- {} ({})'.format(player_name, hero_name)

for game in demo.stream(tick=5000):
tick, user_msgs, game_evts, world, modifiers = game
Expand Down

0 comments on commit 1b0e712

Please sign in to comment.