mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-05 21:31:35 +00:00
Translate cp65001 encoding to UTF-8 (#862)
This commit is contained in:
committed by
Jay Lee
parent
693c23e562
commit
857230def3
@@ -94,6 +94,12 @@ Go to the following link in your browser:
|
|||||||
{address}
|
{address}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
def cp65001(name):
|
||||||
|
if name.lower() == "cp65001":
|
||||||
|
return codecs.lookup("utf-8")
|
||||||
|
|
||||||
|
codecs.register(cp65001)
|
||||||
|
|
||||||
# Override and wrap google_auth_httplib2 request methods so that the GAM
|
# Override and wrap google_auth_httplib2 request methods so that the GAM
|
||||||
# user-agent string is inserted into HTTP request headers.
|
# user-agent string is inserted into HTTP request headers.
|
||||||
def _request_with_user_agent(request_method):
|
def _request_with_user_agent(request_method):
|
||||||
|
|||||||
Reference in New Issue
Block a user