handle utf-16 in display data -v mode
@@ -82,7 +82,10 @@ def display_data(opt):
# NOTE: If you want to look at the data from here rather than calling
# world.display() you could access world.acts[0] directly, see simple_display above.
if opt.get('verbose', False) or opt.get('display_add_fields', ''):
- print(world.display() + '\n~~')
+ print(
+ world.display().encode('utf-16', 'surrogatepass').decode('utf-16')
+ + '\n~~'
+ )
else:
simple_display(opt, world, turn)
turn += 1
