如何将此 IRI 转换为 URI?
http://down.qnwz.cn/uploads/media/broadcast/storymagazine/爱的底牌.mp3
我希望结果类型应该是 Qurl ,谢谢
看起来
QUrl QUrl::fromEncoded ( const QByteArray & input )
在这里不起作用。
>>> from PyQt4.QtCore import *
>>> url='http://down.qnwz.cn/uploads/media/broadcast/storymagazine/爱情的底牌.mp3'
>>> QUrl.fromEncoded (QUrl(url).toEncoded())
PyQt4.QtCore.QUrl('http://down.qnwz.cn/uploads/media/broadcast/storymagazine/爱情的底牌.mp3')
>>>