Skip to content
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

Error while scanning my root folder: 'utf-8' codec can't encode characters... #112

Open
a375702 opened this issue Jul 28, 2019 · 1 comment

Comments

@a375702
Copy link

a375702 commented Jul 28, 2019

I got this error in the log:
directory_watcher.py : scan_photos : 237 : ERROR : 'utf-8' codec can't encode characters in position 37-42: surrogates not allowed

How can I find out which folder is causing issues? How to fix this?

@guysoft
Copy link
Collaborator

guysoft commented Jul 29, 2019

You have a folder with a encoding that is not utf-8.
You can try scanning only part of the folders to narrow it down, there is no code to return what folder is causing it.

Its happening because of this:
https://stackoverflow.com/a/27367173/311268

Perhaps there is a way to replace it. It looks like its only a print

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants