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

filePath encoding #115

Open
nakarin0528 opened this issue Mar 20, 2021 · 1 comment
Open

filePath encoding #115

nakarin0528 opened this issue Mar 20, 2021 · 1 comment

Comments

@nakarin0528
Copy link

I can't read EDF files when the file path contains Japanese characters.

Can you please modify it so that I can set the encoding?

I want to set utf-8 as encoding.

@skjerns
Copy link
Collaborator

skjerns commented Mar 20, 2021

This should actually work, see #99 and related issues. It's a bit more tricky unfortunately, see at #100 for the details. The test case actually covers some chinese and korean letters, however I have to admit not japanese so far, but it should be treated the same.

cls.test_unicode = os.path.join(data_dir, "tmp_utf8-中文źąşㆆ운ʷᨄⅡəПр🤖.edf")

which platform are you using? can you provide a sample file name?

Probably you can fix this by setting your system locale to utf-8. This is most likely a OS-related bug, which happens when Python (which is UTF8) is interacting with the C-library (which depends on your systems locale)

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

No branches or pull requests

2 participants