Translate cp65001 encoding to UTF-8 (#862)

This commit is contained in:
Gustavo Murayama
2019-04-13 11:40:15 -03:00
committed by Jay Lee
parent 693c23e562
commit 857230def3

View File

@@ -94,6 +94,12 @@ Go to the following link in your browser:
{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
# user-agent string is inserted into HTTP request headers.
def _request_with_user_agent(request_method):