一、问题描述

  出现如下url乱码 :

  http://xxx/macV2/ç½é®¡å®¶-1.5.0.dmg
 
二、转换成中文
 
a = 'http://xxx/macV2/ç½é®¡å®¶-1.5.0.dmg'
# 先转换成进制
a = a.encode('utf-8')
print(a)
# a = a.decode('utf8').encode('raw_unicode_escape').decode('utf8')
print(a)
 

相关文章:

  • 2021-12-11
  • 2022-02-19
  • 2022-12-23
  • 2021-06-11
  • 2021-12-04
  • 2021-09-07
  • 2022-01-01
猜你喜欢
  • 2022-02-19
  • 2021-11-25
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
  • 2022-02-22
相关资源
相似解决方案