clark800 / dropbox-restore

Restore any dropbox folder to a previous state
The Unlicense
246 stars 62 forks source link

Can't restore folders with extended characters (éàöè...) #39

Open najbo opened 8 years ago

najbo commented 8 years ago

Hi Chris,

Thanks a lot for your powerful and useful script.

I have some troubles when trying to restore folders with extended characters, such as "éàèü..."

Here is what I get :

c:\Python27\Scripts>python restore.py /Sociétés/Cinéma/Diapositives 2016-03-23
Restoring folder: /SociÚtÚs/CinÚma/Diapositives
[404] u"Path '/Soci\xdat\xdas/Cin\xdama/Diapositives' not found"
Note: You must specify the path starting with "/", where "/" is the root
of your dropbox folder. So if your dropbox directory is at "/home/user/dropbox"
and you want to restore "/home/user/dropbox/folder", the ROOTPATH is "/folder".

And - of course - impossible to rename folder to a more "nice & easy" name. I will loose delete historic.

Thanks for your Idea / suggestions. Jan

clark800 commented 8 years ago

Try running with python3

romanais commented 8 years ago

Hello, and thank you for the script ! Works like a charm ! @najbo : I had the same problem as you . Here is how I made to address this concern under Python 2.7/Win. Open a command prompt. Type : chcp 1252 Valid. Then i run my command : python.exe restore.py "/Vacances été" 2016-09-13 or python.exe restore.py "/Impôts" 2016-09-13 On the screen, the extended characters are broken, but the restore is ok, and in my Dropbox folder, everything is ok.

najbo commented 8 years ago

You’re welcome :)

De : romanais [mailto:notifications@github.com] Envoyé : mercredi 14 septembre 2016 14:24 À : clark800/dropbox-restore dropbox-restore@noreply.github.com Cc : najbo info@jan-boesch.net; Mention mention@noreply.github.com Objet : Re: [clark800/dropbox-restore] Can't restore folders with extended characters (éàöè...) (#39)

Hello, and thank you for the script ! Works like a charm ! @najbo https://github.com/najbo : I had the same problem as you . Here is how I made to address this concern under Python 2.7/Win. Open a command prompt. Type : chcp 1252 Valid. Then i run my command : python.exe restore.py "/Vacances été" 2016-09-13 or python.exe restore.py "/Impôts" 2016-09-13 On the screen, the extended characters are broken, but the restore is ok, and in my Dropbox folder, everything is ok.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/clark800/dropbox-restore/issues/39#issuecomment-246996057 , or mute the thread https://github.com/notifications/unsubscribe-auth/AROGT5t8do6ECk7J8azs4a5w255Tatnrks5qp-dVgaJpZM4H4PE1 . https://github.com/notifications/beacon/AROGTw6IYUza7hUXPTJFfqfeK8nccP0Lks5qp-dVgaJpZM4H4PE1.gif


L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast. https://www.avast.com/antivirus