Skip to content

Non ASCII characters in filenames cause errors #8

@llewelld

Description

@llewelld

See comment by sferics.

But I discovered another error - it seems to be a problem with characters like ä, ö, ü or ß. I have made the file ümlaut.txt in my owncloud and i got the following error-message when syncing:

2016-09-20 10:44:55,494 ERROR Traceback (most recent call last):
File "/usr/share/ownNotes/python/sync.py", line 414, in sync
self._download(wdc, ldc, filename, filename)
File "/usr/share/ownNotes/python/sync.py", line 617, in _download
with open(ldc.get_abspath(local_relpath), 'wb') as fh:
UnicodeEncodeError: 'ascii' codec can't encode character '\xfc' in position 21: ordinal not in range(128)
[D] onException:44 - : 'ascii' codec can't encode character '\xfc' in position 21: ordinal not in range(128)
[D] onError:159 - Sync Error : 'ascii' codec can't encode character '\xfc' in position 21: ordinal not in range(128)
[D] onFinished:35 - Sync finished :false
[D] listNotes:90 - listNotes called

But - of course - i can avoid such filenames ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions