文字编码格式导致utf-8分为“有bom”和“无bom”两种格式。
%EF%BB%BF表示带bom的格式。
使用python的requests发送get请求时(如:requests.get(url, auth=(user_name, get_password()))),需要replace掉%EF%BB%BF,否则会导致解析失败。
文字编码格式导致utf-8分为“有bom”和“无bom”两种格式。
%EF%BB%BF表示带bom的格式。
使用python的requests发送get请求时(如:requests.get(url, auth=(user_name, get_password()))),需要replace掉%EF%BB%BF,否则会导致解析失败。