2023年6月11日

axis2 maven报错Could not find artifact org.apache.axis2:axis2:jar:1.7.9

摘要: Could not find artifact org.apache.axis2:axis2:jar:1.8.2 in aliyunmaven (https://maven.aliyun.com/repository/public/) 一开始以为是镜像的问题,但是换成中央仓库也没用 https:// 阅读全文

posted @ 2023-06-11 11:49 lll888 阅读(851) 评论(0) 推荐(0)

2020年3月15日

python3解码utf-8 escape字符串

摘要: 如果遇到 '\\xe4\\xb8\\xad\\xe5\\x9b\\xbd' 这样的utf-8 escape字符串,并且不是在代码里,而是从别的地方获取的,无法更改,就需要特殊的解码方式 在python2中,可以直接用decode("string_escape")解决,但是python3中str类型无 阅读全文

posted @ 2020-03-15 14:45 lll888 阅读(601) 评论(0) 推荐(0)

2019年4月25日

Python2.7在Windows下CMD编码为65001/utf-8时print报错[Errno 0]/[Errno 2]

摘要: 使用python2.7处理unicode的字符串,环境变量已设置PYTHONIOENCODING为utf-8,cmd编码为utf-8时print unicode字符串会报错[Errno 0]或[Errno 2](python3.6环境下未出现此问题) 此时会报错,如果字符串只含ASCII字符就不会报 阅读全文

posted @ 2019-04-25 18:39 lll888 阅读(353) 评论(0) 推荐(0)

导航