diff --git a/drivepy/files.py b/drivepy/files.py index acd93fb..8c0b198 100644 --- a/drivepy/files.py +++ b/drivepy/files.py @@ -52,6 +52,7 @@ class GoogleFile(object): create_params = {} if content: + utf_content = content try: utf_content = content.encode('utf-8') except UnicodeDecodeError: @@ -217,6 +218,7 @@ class GoogleFile(object): params = {} if content: + utf_content = content try: utf_content = content.encode('utf-8') except UnicodeDecodeError: