def get_upper(somedata):
	result = ''
	try:
		result = somedata.decode("utf-8").upper()
	except:
		result = somedata.upper()
	return result
Handle Python 2/3 differences in argv encoding
dataset/ETHPy150Open tleeuwenburg/pyconau15/word2vec/memegenerator.py/get_upper