#!/usr/bin/env python
# -*- coding:gbk -*-
import sys
import re
import os
import chardet

if __name__=='__main__':
	print chardet.detect('abc123')
	strg = 'ÖÐ¹ú'
	print chardet.detect(strg)
	strg = 'ÖÐ¹ú'.decode('gbk').encode('utf-8')
	print chardet.detect(strg)
	strg = 'ÖÐ¹ú'.decode('gbk').encode('gb2312')
	print chardet.detect(strg)

#×Ö·û´® Êý×é×ª
#"-".join(list)

#×Ö·û´®Ìæ»», count¿ÉÒÔÊ¡ÂÔ
#str.replace("abc","xyz",count)

