gnu_d
public python v1 · immutable ucontent = open(filename, "rb") content = u"" for i in ucontent.readlines(): c = u"" for e in i: try: c+= e.encode("utf-8", 'ignore') except UnicodeDecodeError: c += unicodedata.normalize('NFKD', c) content+= c