[英]Encoding Requests response - Python
我無法弄清楚為什么我沒有從我的回復中收到字母 æøå。 ø = \Ø api 上的文檔說 utf-8,我檢查了 r.encoding 是 utf-8
header = {'Client-Identifier': 'test'}
r = requests.get(url='https://gbfs.urbansharing.com/oslobysykkel.no/station_information.json'
你可以使用request.json,響應基本上是json。
header = {'Client-Identifier': 'test'}
r = requests.get(url='https://gbfs.urbansharing.com/oslobysykkel.no/station_information.json')
print(r.json())
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.