python 转换中文域名
最近在搞备案查询系统和过滤系统,遇到中文转码问题,记录下 print '中国'.decode('utf8').encode('punycode') print 'fiqs8s'.decode('utf8').decode('punycode')
2017年10月发布的文章
最近在搞备案查询系统和过滤系统,遇到中文转码问题,记录下 print '中国'.decode('utf8').encode('punycode') print 'fiqs8s'.decode('utf8').decode('punycode')