python 去utf-8 bom Dec 21, 2007 #!/usr/bin/python #-*- coding: utf-8 -*- import os import codecs import time from sys import * __trim_ext_array__ = (“php”, “js”) def trimBom(filename):