I'm using Python 3.6.5.
Hello, I'm having issues with encoding. I believe the issue has something to do with trying to use both base58 and utf-8. This portion of the program worked in Python 2.7.14 and I'm trying to convert it to Python 3.6.5.
def save_asset(asset):
nameString = '{0}_!_{1}'.format(asset['Name'].encode('utf-8').strip(), asset['AssetTypeID'])
filename = base58.b58encode(nameString)+'.png'
Cmd output:
File "Transfer.py", line 315, in start_download
saveAttempt = save_asset(a)
File "Transfer.py", line 221, in save_asset
filename = base58.b58encode(nameString)+'.png'
TypeError: can't concat str to bytes