MStadlmeier / drivesync

Google Drive synchronization for Linux
MIT License
197 stars 26 forks source link

Another Conversion error (\\xC3" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)) #50

Open Katlemm opened 2 years ago

Katlemm commented 2 years ago

First of all, I love drivesync! It does everything I want. But when I want to sync my files, some german letters (ä,ü,ö etc) cause some conversion errors.

Uploading file SchuleAktuellZorin/Bio/Ökosysteme/ÖkosystemFließgewässer.pdf.xopp ... /home/USER/.rvm/gems/ruby-2.7.0/gems/multi_json-1.13.1/lib/multi_json/optionscache.rb:12: warning: Capturing the given block using Proc.new is deprecated; use &block instead Traceback (most recent call last): 20: from drivesync.rb:65:in <main>' 19: from drivesync.rb:24:insync' 18: from /home/katlem/drivesync/src/synchronizer.rb:71:in run' 17: from /home/katlem/drivesync/src/synchronizer.rb:279:insync' 16: from /home/katlem/drivesync/src/synchronizer.rb:279:in each' 15: from /home/katlem/drivesync/src/synchronizer.rb:282:inblock in sync' 14: from /home/katlem/drivesync/src/synchronizer.rb:166:in upload_file' 13: from /home/katlem/drivesync/src/drive_manager.rb:108:inupload' 12: from /home/katlem/drivesync/src/drive_manager.rb:178:in traverse_and_create' 11: from /home/katlem/drivesync/src/drive_manager.rb:178:ineach' 10: from /home/katlem/drivesync/src/drive_manager.rb:181:in block in traverse_and_create' 9: from /home/katlem/drivesync/src/drive_manager.rb:167:increate_folder' 8: from /home/katlem/.rvm/gems/ruby-2.7.0/gems/google-api-client-0.23.4/generated/google/apis/drive_v3/service.rb:601:in create_file' 7: from /home/katlem/.rvm/gems/ruby-2.7.0/gems/google-api-client-0.23.4/lib/google/apis/core/base_service.rb:360:inexecute_or_queue_command' 6: from /home/katlem/.rvm/gems/ruby-2.7.0/gems/google-api-client-0.23.4/lib/google/apis/core/http_command.rb:91:in execute' 5: from /home/katlem/.rvm/gems/ruby-2.7.0/gems/google-api-client-0.23.4/lib/google/apis/core/api_command.rb:64:inprepare!' 4: from /home/katlem/.rvm/gems/ruby-2.7.0/gems/representable-3.0.4/lib/representable/json.rb:44:in to_json' 3: from /home/katlem/.rvm/gems/ruby-2.7.0/gems/multi_json-1.13.1/lib/multi_json.rb:139:indump' 2: from /home/katlem/.rvm/gems/ruby-2.7.0/gems/multi_json-1.13.1/lib/multi_json/adapter.rb:25:in dump' 1: from /home/katlem/.rvm/gems/ruby-2.7.0/gems/multi_json-1.13.1/lib/multi_json/adapters/json_common.rb:21:indump' /home/katlem/.rvm/gems/ruby-2.7.0/gems/multi_json-1.13.1/lib/multi_json/adapters/json_common.rb:21:in `to_json': "\xC3" from ASCII-8BIT to UTF-8 (Encoding::UndefinedConversionError)

I have not changed anything else in the code and when I rename the file, the syncing works without problems. I resently changed distros from ubuntu based, where everything worked fine, to an Arch based, and kept the home directory (if that is useful)

Thanks in advance for anything! If some more files or more information is needed i'l provide them as quickly as I can!