-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support UTF-8 filenames/folders #26
Comments
Do you have any guidance on the best way to add the support? I'm happy to look at Pull Requests, but it's been years since I've looked deeply at the Google Drive APIs that would be applicable to this situation. |
It's not the Google Drive API, it's a python language issue. Python is notorious for sucking with UTF-8. I have the script working locally now as far as changing ownership and everything, but you are still printing this wrong:
I can do a PR if you want, but I'm no developer by any means and the quick stuff I found to try to fix this didn't work. Previously I thought the script didn't work, but I didn't have any files in that folder so that's why nothing was happening. I thought it would just change the root folder permission too. |
Thanks. It would still be helpful to know how you're working around the issue, even if it's not the right thing to commit to the code here. |
I just added this after the imports
|
I had the same problem, but I noticed that the error is only when printing the drive_item['title'], so I commented the prints and it is working fine. |
From @Nottt's comment:
I don't have much time to devote to this project, but I'm happy to take a pull request that adds this. |
The current script will fail with lots of folders and filenames.
I can get past the
UnicodeEncodeError:
with this:But then it goes on but nothing is shared/changed
Any chance we can get this? This is still the best method to change permissions with google drive but it chokes with lots of characters :(
The text was updated successfully, but these errors were encountered: