Please note that it does not go down too much.
You can see that the handling of strings in Python2 and Python3 is different. Python3 is easy because there is no conversion between Unicode character string and byte character string.
python2
#Standard input / output is UTF-8 assumptions
# Python2.7
$ python -c "import sys;print(u'\"'.join(unicode(sys.argv[1], 'utf-8')))"Through that, there is Kanharuntayo.
#When"O"Shi"hand"So"This"hand"Or"Hmm"Is"Ru"Hmm"Ta"Yo"Mm"Mm"Mm"Mm
# Python3.3
$ python -c "import sys;print('\"'.join(sys.argv[1]))"Through that, there is Kanharuntayo.
#When"O"Shi"hand"So"This"hand"Or"Hmm"Is"Ru"Hmm"Ta"Yo"Mm"Mm"Mm"Mm
Recommended Posts