#!/usr/bin/python
# -*- coding:utf-8 -*-
import re,os
import sys
reload(sys)
def decode(filename):
# print filename
try:
f = open(filename, 'r')
except:
print "File %s open error! No such file!" % filename
return
while 1:
line = f.readline().replace("n","")
if not line:
break
p = re.compile(r'=')
str = p.split(line)
if len(str) == 2:
str2 = repr(str[1].decode('utf-8')).replace('u'',"").replace(''',"")
print "%s%s%s" % (str[0],"=",str2)
else:
print line
if __name__ == '__main__':
print sys.argv
decode(os.path.join(os.path.dirname(__file__), sys.argv[1]))