def uni(s, encoding=None):
    # unicode string feat
    if not isinstance(s, unicode):
        try:
            return unicode(s, encoding)
        except:
            try:
                return unicode(s, 'utf-8')
            except __HOLE__:
                return unicode(s, 'latin-1')
    return s
dataset/ETHPy150Open dossier/dossier.models/dossier/models/etl/interface.py/uni