Change encoding to UTF-8

pull/2/head
Bernhard Mueller 7 years ago
parent b77710f4d5
commit 4e1ee61ae0
  1. 2
      ether/asm.py
  2. 1
      lol
  3. 2
      mythril

@ -14,7 +14,7 @@ def disassembly_to_easm(disassembly):
easm += instruction['opcode'] easm += instruction['opcode']
if 'argument' in instruction: if 'argument' in instruction:
easm += " 0x" + codecs.decode(instruction['argument'], 'ascii') easm += " 0x" + codecs.decode(instruction['argument'], 'utf-8')
easm += "\n" easm += "\n"

1
lol

@ -0,0 +1 @@
awwawwawwawwawwaww

@ -75,7 +75,7 @@ elif (args.assemble):
if (args.outfile): if (args.outfile):
util.raw_bytes_to_file(args.outfile, assembly) util.raw_bytes_to_file(args.outfile, assembly)
else: else:
print("0x" + str(codecs.encode(assembly, "hex_codec"), 'ascii')) print("0x" + str(codecs.encode(assembly, "hex_codec"), 'utf-8'))
elif (args.trace): elif (args.trace):

Loading…
Cancel
Save